UDP Server Trouble

Can any Javaheads help me on this?

I’ve been having trouble connecting to my UDP test server

http://pastebin.com/hz6eCCqN

I tried to telnet localhost:7777 and telnet localhost 7777 but neither worked

Is it something wrong with the code?

Telnet is TCP, not UDP. The ports for the two are completely separate.

Try netcat, it can speak UDP.

Or… just write another application that sends DatagramPackets.

Thanks!

Further explanation maybe?

You are already sending DatagramPackets in your response. Why not write another application that sends DatagramPackets in the first place

I’m not sure what there is to explain, really :persecutioncomplex:

Edit:
Besides, there is no point in using worker threads to send UDP packets. Everything is non-blocking.