I am trying to use the Socket.bind() function this way:
Bind(new IPEndPoint(myInternalAddress, myPort));
The error I am getting is "The requested address is not valid in its context.", but this only happens on Windows 7 (I am using 64 bit).
Befor my upgrade a few days ago this was working fine, and I checked the IPs to be the correct ones.
Any help would be appreciated on what exactly goes wrong here.
bind()
... binds a socket to local IP address and port. That's what IPEndPoint
takes in its constructor (see IPEndPoint(address, port)
). Looks like you are passing local and remote addresses there instead.
If none of the ports work then it's probably the IP address that is wrong. Since you mention an "upgrade" - see what changed - is the address still the same? ipconfig
- hint, hint.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With