static void waitForChatServer() { if (!portIsBound(9751)) { System.out.print("Waiting for chat server... "); do { sleep(1000); } while (!portIsBound(9751)); print("OK."); } }