This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes UDP DatagramSocket not working on port forwarding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "UDP DatagramSocket not working on port forwarding" Watch "UDP DatagramSocket not working on port forwarding" New topic
Author

UDP DatagramSocket not working on port forwarding

Charles Simms
Greenhorn

Joined: Oct 10, 2008
Posts: 7
I am trying to use java.net.DatagramSocket to send DatagramPacket across the internet.

I have some hardware on my internal network which I want to send udp packets to from an external network using port forwarding set up on my Linksys WAG320n router. I can connect using telnet to the hardware proving that TCP and port forward works but when I try to send a UDP packets from an external network it fails.

I can however send the same packet internally and port forwarding works fine.

Am I missing something when programming using the DatagramSocket or is the problem on my router (Linksys WAG320n)
 
 
subject: UDP DatagramSocket not working on port forwarding
 
Similar Threads
Tomcat not responding to 127.0.0.1
Setting the Type of Service (ToS) field in the IP header of a packet
JMF audioconference with PC in a LAN
JMF Audioconference with PC in a LAN
JMF Audioconference with PC in a LAN