如何通过互联网沟通 [英] how communicate over Internet

查看:75
本文介绍了如何通过互联网沟通的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了示例服务器 - 客户端应用程序来聊天。但它只适用于我的本地网络。

检查我从www.whatismyip.com找到我的IP并尝试过。但没有工作。我在互联网上搜索了这个。
我对此只有一个模糊的想法,因为我的路由器没有将地址转换为我的端口。一些结果似乎我必须配置路由器。有些人似乎NAT可以帮助我。

我们如何找到确切的IP和端口或类似的东西来连接路由器后面的计算机。

任何人都可以提供这方面的好教程(简单)。如何通过C#完成NAT。
如何使用我的申请在互联网上聊天。

问候,
Akeeq。

Hi

I have created sample server-client application to chat. But it works only on the my local network.

To check i find my IP from www.whatismyip.com and tried. but didnt work. I searched over the internet about this.
I got only a vague idea about this, that it is becouse of my router which doesnt translate the address to my port. Some result seems that i have to configure router. Some seems NAT can help me.

How we find exact ip and port or similar thing to get connection with a computer behind router.

Can any one give good tutorial on this (Simple). How NAT is done by C#.
How can i chat over internet using my application.

Regards,
Akeeq.

推荐答案

路由器正在做NAT,而不是你的计算机或C#。当您从路由器后面检查whatismyip.com时,该IP实际上属于路由器。

因此,您需要登录路由器(通常通过网络内部的Web浏览器完成)并告诉您路由器将端口转发到计算机。

端口转发的帮助在这里:
http:// portforward。 com /

-Steve
The router is what is doing the NAT, not your computer or C#. When you check whatismyip.com from behind the router, that IP actually belongs to the router.

So, you need to log into your router (usually done via a web browser from inside the network) and tell the router to forward the port to the computer.

Help on port forwarding is here:
  http://portforward.com/

       -Steve


这篇关于如何通过互联网沟通的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆