I have written a client server chat App using UDP (Indy Components). I am having problems getting the username of the user who sends a message (not the local computer username).
What I need is a function like this:
GetUserNameFromIP(sIPAddress) : String;
I can get the IP address and Host Name, but this doesn't help me, as my end result needs to pop up a message like this:
Message from : [adam]
Message here
Any ideas?
------------------------------------
There's no place like 127.0.0.1
------------------------------------
What I need is a function like this:
GetUserNameFromIP(sIPAddress) : String;
I can get the IP address and Host Name, but this doesn't help me, as my end result needs to pop up a message like this:
Message from : [adam]
Message here
Any ideas?
------------------------------------
There's no place like 127.0.0.1
------------------------------------