We are facing a problem while trying to access Port 80 on a windows 7 machine using C# code.
This error happens to occur only on Windows 7 machine while the same piece of code works fine on a Windows XP machine.
The C# code that we are using makes use of core socket programming. Below is the snippet where we are binding the address to port 80.
public static int rx_Port = 80;
IPEndPoint ip_rx = new IPEndPoint(IPAddress.Any, rx_Port);
If we try to access port 80 then I get an error as
"An attempt was made to access a socket in a way forbidden by its access permissions"
I’m double sure that I have given permission to port 80 under all categories to communicate through Firewall.
Even simple client server programs do not work if port 80 is specified on a Windows 7 machine but the same piece of code works fine on an Windows XP machine. I really can't make out what's happening here...
Any thoughts on how to proceed?