views:

39

answers:

3

Hi Guys,

I need my system IP address. I've used Request.ServerVariables["remote_addr"] but it is being provided IP address of my network(intranet) not my local system ip.

Actually I've set session state off and want to identify the user request. So i want to fetch the system IP not router/network IP. Please tell me the appropriate solutions.

+1  A: 

Request.UserHostAddress. Try this.

Tim Li
This property provide the IP address of my router. I want to identify systems in network individually.
Ajit
Do you want to get the computer's name?what about trying this?Request.LogonUserIdentity.Name
Tim Li
A: 

try this

how to get ip address of machine in c#

Azhar
It is not providing the IP of my local machine..
Ajit
A: 

You should be able to use:

Request.ServerVariables["LOCAL_ADDR"]

As seen on: http://msdn.microsoft.com/en-us/library/ms524602(VS.90).aspx

DocV