可以直接与服务器通信吗? [英] Can communicate directly with the server ?

查看:131
本文介绍了可以直接与服务器通信吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在局域网中可用的一台计算机上,我们安装了在VB.NET中创建的服务器.网络通过路由器到达Internet.是否可以直接与服务器通信,而无需信息通过Internet?

On one of the computers available in the local network we have installed a server created in VB.NET. Network goes through a router to the Internet. There is the possibility to communicate directly with the server, without the information to go through the Internet?

推荐答案

是的,如果它与服务器连接到相同的本地网络PC试图通讯.您需要做的就是使用计算机名称或IP地址建立本地套接字连接.

如果您未指定应通过互联网进行连接,则不会.

如果您担心服务器可以从Internet连接到其他计算机,则需要在路由器和/或服务器上配置防火墙以阻止它.
Yes, if it is connected to the same local network as the PC trying to communicate. All you need to do is set up a local socket connection using the computer name or IP address.

If you do not specify that the connection should be via the internet, then it won''t.

If you are concerned that the server will be available from the internet to other computers, then you need to configure firewalls at your router and / or server to prevent it.


这篇关于可以直接与服务器通信吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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