Brief description  about Online courses   join in Online courses
View Ritwik  Chakraborty 's Profile

Acquiring IP Address of Client

My Website requires to track IP Address of clients. The Clients are mostly using Private Address of NIC. The Website is also hosted in the NIC Server,but the IP address of Web Server seems to be different than the Client IP address,though both are under NIC. How to crack it?
Asked by Ritwik Chakraborty | May 8, 2013 |  Reply now
Replies (3)
View Guru Realspace Matrix 's Profile
public static IPAddress GetIPAddress(string hostName)
Ping ping = new Ping();
var replay = ping.Send(hostName);

if (replay.Status == IPStatus.Success)
return replay.Address;
return null;

Try this hope this will help you . Code is in C#.NET

For more information on c# <a href=''>interview questions</a> you can visit
May 20, 2013
View Ritwik Chakraborty 's Profile
Thank You Sir, but can you please make it for ASP.NET?(C#/VB.NET)
May 17, 2013
View CCNA Teacher 's Profile
$pipaddress = getenv('HTTP_X_FORWARDED_FOR');
$ipaddress = getenv('REMOTE_ADDR');
echo "Your Proxy IP address is : ".$pipaddress. "(via $ipaddress)" ;


try this
May 13, 2013