Posted on: 5/27/2014 5:28:25 AM | Views : 411

I tried below codes to get IP from client machine but fail to get the appropriate IP 
CODE1
Using this code i am getting IP   100.43.0.212
of my server where i have uploaded my website 
private void IPAddress() { IPHostEntry host; string localIP = "?"; host = Dns.GetHostEntry(Dns.GetHostName()); foreach (IPAddress ip in host.AddressList) { if (ip.AddressFamily.ToString() == "InterNetwork") { localIP = ip.ToString(); TxtExt.Text = localIP; } } } Using thic code i am getting 87.101.226.125 which is unknown
<script type="text/javascript"> window.onload = function () { var script = docum ...

Go to the complete details ...