UdpClient access denied exception
-
I am using a UdpClient to listen for messages from another machine on the same network. I am using port 63000 and this works on all machines except for 1. This one machine gives me an AccessDenied SocketException when I create the object in the constructor. I have looked at netstat and TCPView and no other apps/processes are using port 63000. If I move the port to 60001, it works. My constructor for the UdpClient is using the IPEndPoint object: private static ipEndPoint IPEndPoint = new IPEndPoint(IPAddress.Any, 63000); Google has not been helpful, as everything I read says that it is likely because another app/process is using the same port. However, I cannot find anything using that port in netstat or TCPView. Does anyone have any ideas for me to try or look at? Thanks!
-
I am using a UdpClient to listen for messages from another machine on the same network. I am using port 63000 and this works on all machines except for 1. This one machine gives me an AccessDenied SocketException when I create the object in the constructor. I have looked at netstat and TCPView and no other apps/processes are using port 63000. If I move the port to 60001, it works. My constructor for the UdpClient is using the IPEndPoint object: private static ipEndPoint IPEndPoint = new IPEndPoint(IPAddress.Any, 63000); Google has not been helpful, as everything I read says that it is likely because another app/process is using the same port. However, I cannot find anything using that port in netstat or TCPView. Does anyone have any ideas for me to try or look at? Thanks!
Have you tried a clean boot to see if it works then?
The difficult we do right away... ...the impossible takes slightly longer.
-
I am using a UdpClient to listen for messages from another machine on the same network. I am using port 63000 and this works on all machines except for 1. This one machine gives me an AccessDenied SocketException when I create the object in the constructor. I have looked at netstat and TCPView and no other apps/processes are using port 63000. If I move the port to 60001, it works. My constructor for the UdpClient is using the IPEndPoint object: private static ipEndPoint IPEndPoint = new IPEndPoint(IPAddress.Any, 63000); Google has not been helpful, as everything I read says that it is likely because another app/process is using the same port. However, I cannot find anything using that port in netstat or TCPView. Does anyone have any ideas for me to try or look at? Thanks!