Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
Get the Client Machine IP address from ASP Web application
Hariharan Krishnamoorthi
Sep 25 2017 2:52 AM
404
Reply
I have hosted the ASP.Net web application in the server Serv-A and its IP address is 192.168.1.1
I am browsing the above web application in the client machine Client-1 and its IP address is 175.30.1.1.
Here i need to capture my Client-1 machine's IP address whenever the applicaiton is accessing. I used the below codes, but i am not able capture the exact Client-1 machine IP address as 175.30.1.1
The below codes are not working. Kindly let me know should i configure in the machines too?
string
IPAddress = Request.ServerVariables[
"REMOTE_ADDR"
]
string
IPadd2 = Request.UserHostAddress
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Repeater Control
images doesn't appear in email when sent email using asp.net