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. 2 simple questions

2 simple questions

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netwindows-adminhostingtutorial
3 Posts 2 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.
  • Y Offline
    Y Offline
    Yoyosh 0
    wrote on last edited by
    #1

    1. How to check (on WinXP) whether current connection to internet has a public IP address (is NOT behind NAT)? 2.What cheap hosting sites that have appriopriate IIS for ASP.NET 2.0 could you recommend me? (I live in middle Europe) thank you in advance

    S 1 Reply Last reply
    0
    • Y Yoyosh 0

      1. How to check (on WinXP) whether current connection to internet has a public IP address (is NOT behind NAT)? 2.What cheap hosting sites that have appriopriate IIS for ASP.NET 2.0 could you recommend me? (I live in middle Europe) thank you in advance

      S Offline
      S Offline
      stevehammond
      wrote on last edited by
      #2

      To get the IP use something like

      public string getClientIPaddress()
      {
          string IPAddress = HttpContext.Current.Request.ServerVariables\["HTTP\_X\_FORWARDED\_FOR"\];
          if (IPAddress == null)
          {
              IPAddress = HttpContext.Current.Request.ServerVariables\["REMOTE\_ADDR"\];
          }
          return IPAddress;
      }
      

      As for the host i'm not really the best to answer that, we have our own servers in a datacentre, I know there are good sites out there to show and compare them

      Y 1 Reply Last reply
      0
      • S stevehammond

        To get the IP use something like

        public string getClientIPaddress()
        {
            string IPAddress = HttpContext.Current.Request.ServerVariables\["HTTP\_X\_FORWARDED\_FOR"\];
            if (IPAddress == null)
            {
                IPAddress = HttpContext.Current.Request.ServerVariables\["REMOTE\_ADDR"\];
            }
            return IPAddress;
        }
        

        As for the host i'm not really the best to answer that, we have our own servers in a datacentre, I know there are good sites out there to show and compare them

        Y Offline
        Y Offline
        Yoyosh 0
        wrote on last edited by
        #3

        And suppose I would like to check whether this connection on THIS computer to Internet has its own public IP address, but not neccessarly using ASP. Just having a typical WinXP command prompt. How to do that?

        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