Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining outbound ip address
Message
From
04/05/2007 09:21:38
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
03/05/2007 17:17:20
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01222271
Message ID:
01222473
Views:
29
>>Not sure exactly what you are looking for.
>>
>>- Request.UserHostAddress will give IP address of the client making the request
>>- Request.ServerVariables with REMOTE_ADDR variable will give you Host IP address.
>>
>>>I am sending an http request to a web server outside of my firewall. I need to include as a parameter the IP address that the web server will see. For example, if I connect the UT, I assume it can log my ip address. What I need to do in my application is find out what that IP address it appears to come from.
>>>
>>>Sorry if I explained horribly...
>
>What I am looking for is the ip address assigned to my router. If my machine is 10.10.1.1 on my local network, I don't want 10.10.1.1, I want what the IP address will be after it passes through the router to the outside world.

If there is only one hop, then you are talking about your gateway IP address. You can probably get that with NetworkInterface class

Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform