Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UDP packets not being sent out?

640063May 15 2009 — edited May 16 2009
I'm trying to send out a stream of UDP packets and it looks like my code is correct, but no data is being sent out on the NIC when I sniff it. I'm just doing
DatagramSocket dgSock = new DatagramSocket(6000)
DatagramPacket dgPacket = new DatagramPacket(payload, payload.length, new InetSocketAddress(host, port));
while(true)
dgSock.send(dgPacket);
 
I print out host and port and host is the IP address of a node on my network. So what am I missing?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2009
Added on May 15 2009
1 comment
110 views