如何在我的样本中端口转发? [英] How Do I Port Forwarding In My That Sample ?
本文介绍了如何在我的样本中端口转发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请打开以下链接。
http://isolasoftware.it/2012/05/04/how-to -send-live-data-from-ac-desktop-application-to-web-using-websockets / [ ^ ]
这个样本只能在我的本地主机上运行..
i想要它应该工作如果我使用其他PC iP ..
为什么它不工作时我用其他电脑ip ??是的其他电脑在其他不同的网络上。
Please open the link below.
http://isolasoftware.it/2012/05/04/how-to-send-live-data-from-a-c-desktop-application-to-web-using-websockets/[^]
this sample only work on my localhost ..
i want its should work if i use other pc iP ..
why its not working when i use other pc ip?? Yeah other pc is on other different network .
推荐答案
你无法连接到其他电脑,因为它可能在使用NAT的路由器后面的网络上(http://nl.wikipedia.org/wiki/Network_address_translation [ ^ ])。您需要在路由器上配置端口转发才能进行连接。 ( http://en.wikipedia.org/wiki/Port_forwarding [ ^ ])
祝你好运!
You cannot connect to other pc's because it is probably on a network behind a router using NAT (http://nl.wikipedia.org/wiki/Network_address_translation[^]). You would need to configure port forwarding on the router to make it possible to connect. (http://en.wikipedia.org/wiki/Port_forwarding[^])
Good luck!
你试图在你的浏览器中打开网址http:// localhost:8070?
你必须用public ip替换localhost服务器网络。
在服务器网络中,您必须允许连接到端口8070.
Internet(公共IP) - >路由器(端口转发到服务器-IP) - >服务器(IP)
You are trying to open the url in your browser http://localhost:8070?
You have to replace localhost with the public ip of the servers network.
In the server network you have to allow connections to the port 8070.
Internet (Public IP) --> Router (Port Forward to Server-IP) --> Server (IP)
这篇关于如何在我的样本中端口转发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文