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

五迷三道 提交于 2019-12-24 22:09:24

问题


Guys, i implemented a Socket with Client and Server side. When I use my local IP (192.168...) it works. But when I put the Internet IP, it doesn't work! What's the main causes for that please?

Thank you


回答1:


You have a firewall or NAT device between you and the internet.

You should forward your port in your router.



来源:https://stackoverflow.com/questions/3121871/socket-c-sharp-local-ip-works-but-internet-ip-do-not-work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!