Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.Net Get IP Address?

ASP.Net Get IP Address?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    miceisland
    wrote on last edited by
    #1

    Hi, Need help on getting the IP Address of Client PC, using "Request("REMOTE_ADDR")" returns me the ip address, 152.226.xxx.xxx, but when tried using http://www.checkip.org/[^] to get the ip address of the client, it gives me different IP address?, any explanation?, as to why the difference in ip address? Thanks

    G K 2 Replies Last reply
    0
    • M miceisland

      Hi, Need help on getting the IP Address of Client PC, using "Request("REMOTE_ADDR")" returns me the ip address, 152.226.xxx.xxx, but when tried using http://www.checkip.org/[^] to get the ip address of the client, it gives me different IP address?, any explanation?, as to why the difference in ip address? Thanks

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      If the client computer is inside the same local network as the server (e.g. behind the same firewall or router), you will get the local IP address. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • M miceisland

        Hi, Need help on getting the IP Address of Client PC, using "Request("REMOTE_ADDR")" returns me the ip address, 152.226.xxx.xxx, but when tried using http://www.checkip.org/[^] to get the ip address of the client, it gives me different IP address?, any explanation?, as to why the difference in ip address? Thanks

        K Offline
        K Offline
        Kapil Thakur
        wrote on last edited by
        #3

        the IP address you are getting through "Request("REMOTE_ADDR")" is the "Real-IP address" over the internet.Whereas the ip address through www.checkip.org is the ip address of the client on the local network(LAN etc.)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups