With this line
ServerSocket serverSocket = new ServerSocket(PORT)
You actually bound your server socket to localhost:PORT
But you want to bound your server listening port to your machine network address
ServerSocket serverSocket = new ServerSocket(PORT, 0, new InetSocketAddress("YourServerIP", 0))