简体   繁体   English

多客户端通过相同的IP连接到服务器

[英]Multi client connect through same IP to server

I have this scenario in mind, can I connect group of clients that have the same IP -Located on the same computer- to server which recognize them by their username and password and not by their IPs .. I want to know if this possible. 我想到了这种情况,我可以将位于同一台计算机上的具有相同IP的一组客户端连接到服务器,这些客户端可以通过其用户名和密码而不是其IP来识别它们。.我想知道是否可能。

I'm using this template of TCP/IP application. 我正在使用 TCP / IP应用程序模板。

You can start (almost) any number of clients on one machine that connect to the same server. 您可以在一台计算机上(几乎)启动连接到同一服务器的任何数量的客户端。 The only restriction is the number of ports you have available. 唯一的限制是可用端口的数量。 A client socket is identified by an ipaddress:port pair, so if you start each client on a different port, it will work. 客户端套接字由ipaddress:port对标识,因此,如果您在不同的端口上启动每个客户端,它将起作用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 客户端可以使用localhost连接到同一台计算机上的服务器,但不能在使用IP地址或主机名时连接到服务器 - Client can connect to Server on same machine using localhost, but not when IP Address or hostname is used 转发IP服务器时如何连接到TCP / IP客户端 - HOw to connect to a TCP/IP client while haveing forwarded IP server 处理具有相同IP的多客户端中的服务器的接收值 - Handle receive values from server in multi clients with same IP 通过 socket tcp/ip 将图像从客户端传输到服务器 - Transfer image from client to server through socket tcp/ip 通过 Tcp/IP 将客户端数据队列发送到服务器端 - Send client side data Queue to server side through Tcp/IP 允许客户端应用程序自动连接到同一网络上的服务器应用程序 - Allow client app to automatically connect to server app on same network 无法使用 Unity 将 android 客户端连接到同一 LAN 上的服务器 - Unable to connect an android client to a server on the same LAN with Unity 如果服务器和客户端位于同一域中,如何获取客户端的外部IP地址? - How do I get the external IP address of a client if the server and the client are on the same domain? 获取客户端IP而不是Web服务器IP - Get client IP NOT web server IP 服务器客户端应用程序在具有两个不同nic ip的同一主机上运行。 - Server client application running on same host machine with two different nic's ip.
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM