strClientIP = Request.UserHostAddress;
Response.Write(strClientIP);
Here
Request.UserHostAddress
Code
Gets the IP host address of the remote client Machine.This Code will help you to get Client Machines IP Address
Gets the IP host address of the remote client Machine.Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 250 SHARP for every blog they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · Learn .NETCSharp 13 and .NET 9 Scripting Guide (Run .cs Without Projects)Download nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Mayur GujrathiPosted Apr 19, 2011, 10:34 PM EDT
Hi ankit thanks for sharing useful information