user271628
user271628

Reputation: 101

Find Remote IP using .net

i need to find the remote users ip address using asp.net and also i need clarification whether multiusers have same ip address

thanks Shakthi

Upvotes: 0

Views: 1196

Answers (2)

Damien_The_Unbeliever
Damien_The_Unbeliever

Reputation: 239804

Edit Caveat - the below is talking about an internet scenario. On a more limited (intranet) network, you may be able to assume a 1-1 User-IP Address mapping

Multiple users may appear to have the same IP address.

The same user may make two requests in a row from different IP addresses.

Whatever you're trying to do, using the users IP address for anything other than logging is probably pointless.

Upvotes: 0

Fitzchak Yitzchaki
Fitzchak Yitzchaki

Reputation: 9163

Dim userIP As string = Request.UserHostAddress

Upvotes: 2

Related Questions