79424510

Date: 2025-02-09 06:54:02
Score: 0.5
Natty:
Report link

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))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Komdosh