How to capture Clients IP?

P

Petrucci2000

Hi All, How can you capture a clients IP Address when they are using DHCP
Protocol? Request.UserHostAddress doesn't works!!!


TIA
 
J

John Timney \(Microsoft MVP\)

look in the servervariables collection

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
 
K

KLomax

Try this...

Dim sX as string
Try
sX = Request.ServerVariables("LOCAL_ADDR")
Catch
sX = ""
End Try
 
S

Steve C. Orr [MVP, MCSD]

Request.ServerVariables("REMOTE_ADDR")
This should give you the IP address of the computer making the request.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top