Netcat error: Can't grab 0.0.0.0:80 with bind

0

1

When I tried to listen on port 80 in Windows 7 with netcat, I get this error:

C:\Users\sashoalm>echo "hello, world" | netcat.exe -l -p 80
Can't grab 0.0.0.0:80 with bind

On the other hand, selecting any other port works.

sashoalm

Posted 2014-06-20T10:13:32.750

Reputation: 2 680

Answers

1

It turned out this port was being used. I used netstat -a -b to find out which program uses it (it requires elevated privileges).

It turned out Skype will use port 80 and 443 for incoming connections, after reading https://support.skype.com/en/faq/FA148/which-ports-need-to-be-open-to-use-skype-for-windows-desktop, I changed that and now it works fine, netcat can listen on this port.

sashoalm

Posted 2014-06-20T10:13:32.750

Reputation: 2 680