Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have developed a Java server which listens for UDP packets which come from mobile devices. At the moment, it works correctly if I run my Server on my windows PC. I can receive and respond to the UDP packets sent from my phone (over 3g, not wifi).

However, I am trying to run the Server on a different computer which I found lying around my house. I have basically done a clean install of Ubuntu Server edition, updated it, installed the java run time environment and configured port forwarding to allow connections on the appropriate port. I have also tried to disable the firewall.

The problem is, it doesn't appear as if the server is receiving any packets and I've exhausted my brain thinking on how to solve/debug the problem. Can anyone suggest to me what the problem might be? or more likely something I can do to help me find out more information about what is going wrong.

share|improve this question
I could tell you a joke about UDP, but you might not get it. – Tom O'Connor Apr 1 '12 at 20:03
up vote 3 down vote accepted

Use the force, Luke.

And by "the force", I mean tcpdump, and by "Luke", I mean James

share|improve this answer
Could you provide a bit more information. Should I run this on my ubuntu server ? – James Apr 1 '12 at 20:28
ok going to try running it on my server. I'll tell you how it goes – James Apr 1 '12 at 20:37
On the server with the java application on, try tcpdump ip and udp port (insert port here) – Tom O'Connor Apr 1 '12 at 20:40
I have successfully utilized the force to subdue the powers of the dark side. AKA stupidity. I saw on tcpdump that the packets were being redirected to instead of Turns out I had two entries for my router forwarding the same port. I'm assuming the router was sending the packet to the wrong internal IP. This tcpdump is a wonderful tool, thank you – James Apr 1 '12 at 20:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.