Hi,All
I have Heared about
string ip=Request.ServerVariables["REMOTE_ADDR"].ToString() ;
and
string strHostName = System.Net.Dns.GetHostName();
string ip=System.Net.Dns.GetHostAddresses(strHostName).GetValue(0).ToString();
These Two things for getting the clients Ip Address.
I have A confusion
about these two
These Two Solution Are giving me different Ips
First Is giving me the series of 127.x.x.x series
And Second is giving me the General series As u have seen like 192.xxx.x.xx etc
Why Is the difference Which is correct
Actually the sceniorio is that At my side There Are 5pcs Suppose Each of then is connected Throgh each other With LAn
Each of them has internet .And Each of them Are getting Internet from single router I think .
So which Ip is correct.
Actually i want to capture the Ip of remote ...
Go to the complete details ...