I am trying to connect a udp client and server, I do not know what I am doing wrong, and I do not know if my server is listening and am not getting seeing any System.outs from client and from Server.
Here is my code:
Thank you, Luke.
posted 3 years ago
Hi, Luke. I run your code with no change and got desired output.
Probably you have a problem with a firewall which disallows that kind of connection. Check it's settings. You may even disable firewall for some time to check if your problem is really caused by it. Note that in most cases "application name" in firewall's settings should be a "java" , "java.exe" or full path to java executable but not name of your class.