Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

UDP Client and Server not connecting  RSS feed

 
Luke Zechariah
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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:

UDP Server



UDP Client




Please help.
Thank you, Luke.

 
Maxim Karvonen
Ranch Hand
Posts: 121
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!