Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining outbound ip address
Message
De
04/05/2007 02:22:25
 
 
À
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:
01222405
Vues:
12
>>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.

One way is to go to a site like http://whatismyip.com. Maybe you could parse the page you get back.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform