简体   繁体   English

套接字C#-本地IP有效,但Internet IP不起作用

[英]Socket C# - Local Ip works, but Internet IP do not work

Guys, i implemented a Socket with Client and Server side. 伙计们,我在客户端和服务器端实现了一个Socket。 When I use my local IP (192.168...) it works. 当我使用本地IP(192.168 ...)时,它可以工作。 But when I put the Internet IP, it doesn't work! 但是当我使用Internet IP时,它不起作用! What's the main causes for that please? 请问主要原因是什么?

Thank you 谢谢

You have a firewall or NAT device between you and the internet. 您和互联网之间有防火墙或NAT设备。

You should forward your port in your router. 您应该在路由器中转发端口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM