简体   繁体   English

TCP客户端在TCP服务器应用程序中具有相同的MAC地址

[英]TCP clients that have same MAC address in TCP server application

I have a TCP server app that is written in C#. 我有一个用C#编写的TCP服务器应用程序。 I accept TCP clients that comes from 1234th port of my server IP address. 我接受来自我的服务器IP地址的第1234端口的TCP客户端。 I do not know MAC addresses of TCP clients. 我不知道TCP客户端的MAC地址。 There is no problem up to now, server runs perfectly but i realized that when TCP clients with same MAC addresses connects to the server, i could not handle their connections. 到目前为止没有问题,服务器运行完美但我意识到当具有相同MAC地址的TCP客户端连接到服务器时,我无法处理它们的连接。 What is the problem in that sitation? 这个引文有什么问题? How can i learn the MAC address of TCP client that attempts to connect to my server? 如何学习尝试连接到我的服务器的TCP客户端的MAC地址? IF i can learn that, i would not accept TCP client that has the same MAC address in the connected clients' list. 如果我可以了解到,我不会接受在连接客户端列表中具有相同MAC地址的TCP客户端。

This is a problem for the netadmin, not the guy who writes the server. 对于netadmin而言,这是一个问题,而不是编写服务器的人。 Two identical MAC addresses in a LAN is a procurement error, or a netadmin error if dynamically allocated. LAN中两个相同的MAC地址是采购错误,如果动态分配则是netadmin错误。 Don't write code to fix problems that shouldn't arise. 不要编写代码来修复不应该出现的问题。 You would have trouble sending ordinary responses to such clients, let alone pinging them. 您将无法向这些客户端发送普通响应,更不用说ping它们了。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM