i am building an irc server, and i need to know how to get the host name of the client...
is it winsock1.remotehost ?
or do i need to do something else?
Printable View
i am building an irc server, and i need to know how to get the host name of the client...
is it winsock1.remotehost ?
or do i need to do something else?
Winsock1.RemoteHost should work for both the client and the server.
will it return the data i need?
What data do you need? Why do you need the host name of the client?
when an irc client connects to a server, the server needs some info on the type of connection...
if the client is connected through proxy, do this else do that.
in irc, when the client connects, it recives a uniqe signature that is combined from his hostname, and other stuff configured by the client.
what i need to know is, if the remotehost return the hostname of the client.
if you connected before using irc, then you should know what i mean...
I don't use IRC, but I understand what you are saying. I am pretty sure that if your server asks what the Client's Hostname is by using Winsock1.RemoteHost, it will get the correct host. Why don't you just try it and see for yourself. It won't do any harm to try.
i have a dedictaed line at home, which makes my IP fixed, and when i connect to an irc server, it says it can't resolve my host and is using my ip instead.
i need a dial up user to connect to my app.