Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining outbound ip address
Message
De
04/05/2007 09:21:38
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
03/05/2007 17:17:20
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
Divers
Thread ID:
01222271
Message ID:
01222473
Vues:
22
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform