Monday, November 10, 2014

UDP and netcat

Last lecture it seemed the usual commands were not working in the classroom computer. After checking it out, I guess the culprit was the software firewall of the classroom computer was blocking the UDP traffic.

You can create a listening "server" by typing nc -u -l 7777 and you can "connect" to it by typing nc -u localhost 7777 on another shell window. It did not work in the classroom but it will usually work.


But ... if you use OSX, the above instructions will not work.

On OSX, you have to add the address on the server side for it to work: nc -u -l localhost 7777


No comments:

Post a Comment