Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for public IP
Message
 
À
26/05/2005 00:38:23
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01017710
Message ID:
01017719
Vues:
20
Hi,

>I would like to check what is the public IP of my network.

The easiest way would be if you have access to an external web server. The web server reports the current IP address in one of the server variables. A web application could do nothing but report your IP address. With AFP 3.0 this would look like this:

<%
? Request.ServerVariables("REMOTE_ADDR")
%>

Many web pages on the web already display the IP address. A quick search on google brought up one example: http://ci.phaseburn.net. Aside from HTTP, you can use any kind of server you want. No matter which one you use, the only way to get the IP address behind a Router is to send a request to the outside and the let the outside party take note of the IP address.
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform