• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UDP Client and Server not connecting

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 121
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic