Hi Francois,
Thanks for the response.
I have tested,
I can get the computer name if the computer is in the same network.
I can send any message including the computer name from the client when it
connects.
Now,
First,
Server gives info of connected client with it's ip and the ID, the ID is
very important for me because I need to use it for sending commands to the
client.
Second,
Client sends a message where it tells it's name etc. when it is connected. I
push client to send message to the server with lot of info.
What I would like to do is,
to combine these 2 messages together where I could get the ID and the
computer name with all the other info I need from the client.
Is it any possible to do this?
I hope I have explained okay.
-----Original Message-----
From: Francois PIETTE
Sent: Tuesday, May 10, 2011 7:00 PM
To: ICS support mailing
Subject: Re: [twsocket] Computer's name
We can get some remote info of the connected client from the following
code but,
are there any possibilities of getting the computername as well?
Are you asking about Windows networking "computername" ? This is completly
independent of the TCP/IP protocol. It may even be different that the DNS
name associated with the computer's IP address.
if the remote computer is on the same LAN (or WAn transporting Windows
networking), then Windows API has function to enumerate computers on the
network (this is what Windows Explorer uses to show the network
neightborhood). You may use that API into your application.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be