Quote Originally Posted by MAL1C3
What I would like to know is how I can go about obtaining the IP of a client connecting to my server while trying to login. The reason for this is because I would like my server to compare the IP with acceptable IPs in an XML file.

Now I know one solution would be to make my own packets and have the client send his/her IP somewhere in a login packet, put implementing packets takes quite a lot of time and this is only a small project, experiment, w/e.

Any help will be greatly appreciated.
try either of this

x=Request.ServerVariables["REMOTE_ADDR"]

or

x=Request.ServerVariables["REMOTE_HOST"]