How to get Clients Actual IP Address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murthyjampani
    New Member
    • Feb 2006
    • 1

    How to get Clients Actual IP Address

    i am using the following code to get Client system ip address but it is showing only default local host ip address (127.0.0.1). how do i get actual ip address
    Response.Write( Request.UserHos tAddress() )
  • Keen
    New Member
    • Feb 2006
    • 6

    #2
    (Request.UserHo stAddress) That function is correct. ;) Ill share my knowledge with you :p

    Let's look at it by Example:
    My Local IP Address: 100.100.100.100
    Public IP : 10.10.10.10

    Now, when I am accessing my client from my computer
    the Result of Request.UserHos tAddress will be '100.100.100.10 0'
    But, when I put my cliente Outside of the server and then open up
    the client the result of Request.UserHos tAddress will be '10.10.10.10'

    So I guess you are the server and the client?
    Is that where you got confussed?

    Comment

    Working...