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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Ip Address

Ip Address

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-net
5 Posts 4 Posters 0 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
    mehran asg
    wrote on last edited by
    #1

    how can I retrive User Ip Address in asp.net pages?

    P V D 3 Replies Last reply
    0
    • M mehran asg

      how can I retrive User Ip Address in asp.net pages?

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      You won't be able to do so for a specific computer, you will get the router's ip only.

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer

      1 Reply Last reply
      0
      • M mehran asg

        how can I retrive User Ip Address in asp.net pages?

        V Offline
        V Offline
        Venkatesh Mookkan
        wrote on last edited by
        #3

        Try this, Request.ServerVariables("REMOTE_HOST")

        Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

        1 Reply Last reply
        0
        • M mehran asg

          how can I retrive User Ip Address in asp.net pages?

          D Offline
          D Offline
          D i x y
          wrote on last edited by
          #4

          Response.Write(Request.UserHostName.ToString());

          M 1 Reply Last reply
          0
          • D D i x y

            Response.Write(Request.UserHostName.ToString());

            M Offline
            M Offline
            mehran asg
            wrote on last edited by
            #5

            so thanks. best regards. mehran asghari

            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