|
-
April 1st, 2005, 08:20 AM
#6
Re: Obtaining a Connecting Client's IP Address
 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"]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|