1

I'am creating a LAN chat application. I already created the client and the server part of the application.

What I want to know is how can my server display the information of the host that are connected to it. For example if there are 5 clients that are connected to the server, I want the server to gather the information of each client like IP address or its MAC address? Can anyone there help with this problem?

Jeremy McGee
  • 24,842
  • 10
  • 63
  • 95
Eric
  • 57
  • 2
  • 4
  • 10
  • go search a bit on this forum and then ask it, some reading for you: http://stackoverflow.com/questions/950020/remoting-information-about-the-client-c-sharp – Moonlight Dec 28 '11 at 14:31
  • @M.Babcock my clients uses TCP. – Eric Dec 28 '11 at 14:46

1 Answers1

3

I'm guessing you're not working with ASP.NET, in which case you could get at least the IP Address by using the Request object properties.

Some information can be found here:

Reliable method to get machine's MAC address in C#

Identifying the client during a .NET remoting invocation

Community
  • 1
  • 1