开发者

socket.connect throw exception

开发者 https://www.devze.com 2023-03-10 02:26 出处:网络
I want to learn socket programming in C#, and related settings. I\'ve download a demo from a site. when i set Remote Host IP address to my local address it connect to server (my pc) and send receive w

I want to learn socket programming in C#, and related settings. I've download a demo from a site. when i set Remote Host IP address to my local address it connect to server (my pc) and send receive works.

socket.connect throw exception

however when i set Remote Host IP address to my router external IP, i doesn't connect and throw exception: "No co开发者_如何学Pythonnnection could be made because the target machine actively refused it 91.99.166.161:300"

socket.connect throw exception

i set port forwarding in my router. what's wrong? Thanks in advance.


Either your port forwarding configuration is incorrect, there's a firewall in the way, or the host you're forwarding to is not listening on the destination port.

0

精彩评论

暂无评论...
验证码 换一张
取 消