通过互联网直接连接到计算机..? [英] direct connection to computer over internet..?

查看:81
本文介绍了通过互联网直接连接到计算机..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想将通过Internet运行程序的用户彼此连接,并且不需要用户进行特殊的端口设置.我希望用户直接连接,而不是通过服务器.服务器可以根据需要断开连接,但是会话不应通过服务器.

如果我想直接连接,那么可以避免端口转发吗?如果是,怎么办?

Hi
I want to connect users that are running a program over the internet with eachother, and no special port setting by the user will be required. I want the users connected directly, not through a server. a server can hand the connection off if needed, but the session should not pass through the server.

If I want to connect directly then is it possible to avoid port forwarding ? if yes How?

推荐答案

没有像您所描述的那样与另一台计算机直接连接"的事情.服务器必须侦听一个端口,该端口可以接受传入的客户端请求.如果服务器前面有防火墙,则将需要某种类型的端口转发.听起来好像您真的不太了解TCP/IP通信的工作原理.
There is no such thing as a "direct connection" to another computer as you desribed it. There must be a port that a server is listening to that accepts incoming client requests. If you have a firewall in front of your server, some kind of port forwarding is going to be required. It sounds as though you really don''t have a good idea of how TCP/IP communication works.


这篇关于通过互联网直接连接到计算机..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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