View Single Post
Old 21.04.2006, 03:46   #8
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

C# WAN IP (Fix) =P

Code:
string ipAddress = null;

System.Net.WebRequest webRequest = System.Net.HttpWebRequest.Create("http://ripper.net.ar/ip.php");
System.Net.HttpWebResponse webResponse = (System.Net.HttpWebResponse)webRequest.GetResponse();

System.IO.StreamReader streamReader = new System.IO.StreamReader(webResponse.GetResponseStream());
string response = streamReader.ReadToEnd();
streamReader.Close();
ipAddress=response;
So ipAddress have ur wan IP

bb, good luck

Pd: U can use the url ripper.net.ar/ip.php it's 24hs hosting, so no problem

[edit]

Here I created a querydb to create each db and run the script of each one.
Test it =)
RipperX is offline