udp test
Posted: Tue May 24, 2011 2:36 pm
Hello,
I have a situation:
My system is able to send UDP packet to remote IP. I'm using windump (it shows network traffic), so i'm 100 % sure, that these packets i'm sending, are definitly UDP, and their's local and remote IPs and ports are correct. To test if it really works, i have connected some other computer to my 'host' machine (this is the machine on which bochs with my system is running), on both computers is windump up and running. Then i have written a pretty simple UDP server, that can detect incoming connection, notice me about this fact, and then it will just print the incoming data on the screen.
I have tried it with UDP netcat, and it works perfectly. But when i try to send UDP packet from my system, server does nothing.
I can see (according to windump) how the packet left the host machine (bochs is configured to use real netcard) with correct source and destination IPs and ports - and then i can see that very packet coming to that other computer (again, according to windump), but the server (that crappy app i have written for testing purposes) does nothing.
So again: the packet get properly received by the other computer, but it does not go futher (to my app).
Any ideas, what could be wrong?
I have a situation:
My system is able to send UDP packet to remote IP. I'm using windump (it shows network traffic), so i'm 100 % sure, that these packets i'm sending, are definitly UDP, and their's local and remote IPs and ports are correct. To test if it really works, i have connected some other computer to my 'host' machine (this is the machine on which bochs with my system is running), on both computers is windump up and running. Then i have written a pretty simple UDP server, that can detect incoming connection, notice me about this fact, and then it will just print the incoming data on the screen.
I have tried it with UDP netcat, and it works perfectly. But when i try to send UDP packet from my system, server does nothing.
I can see (according to windump) how the packet left the host machine (bochs is configured to use real netcard) with correct source and destination IPs and ports - and then i can see that very packet coming to that other computer (again, according to windump), but the server (that crappy app i have written for testing purposes) does nothing.
So again: the packet get properly received by the other computer, but it does not go futher (to my app).
Any ideas, what could be wrong?