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. how to access local website by ip address instead of localhost

how to access local website by ip address instead of localhost

Scheduled Pinned Locked Moved ASP.NET
questionsecuritytutorial
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
    Member 3919049
    wrote on last edited by
    #1

    Hi - I have a website that I'm running locally. I have a notification routine on an external public website that needs to pass a url to an ashx handler through my local website (paypal ipn integration). Can I configure my local machine to expose my local website by ip address to accept url requests from an external website? How can I do this? I tried replacing "localhost" in the url with my local ip address. I got my ip address through cmd > ipconfig. http://75.228.51.999:2076/MyWebSite/Login.aspx[^] When I tried to run it with my ip address locally my browser didn't find the page so I'm guessing that this page wouldn't load from an external machine. Also, are there any additional precautions I should take for this from a security perspective? It's probably an easy question but I've just never done it before....

    R A 2 Replies Last reply
    0
    • M Member 3919049

      Hi - I have a website that I'm running locally. I have a notification routine on an external public website that needs to pass a url to an ashx handler through my local website (paypal ipn integration). Can I configure my local machine to expose my local website by ip address to accept url requests from an external website? How can I do this? I tried replacing "localhost" in the url with my local ip address. I got my ip address through cmd > ipconfig. http://75.228.51.999:2076/MyWebSite/Login.aspx[^] When I tried to run it with my ip address locally my browser didn't find the page so I'm guessing that this page wouldn't load from an external machine. Also, are there any additional precautions I should take for this from a security perspective? It's probably an easy question but I've just never done it before....

      R Offline
      R Offline
      Rhys Jacob
      wrote on last edited by
      #2

      Is your local firewall blocking port 2076? If you run the site on your local IIS server, the default port is 80 which again you'll need to make sure isn't blocked by your firewall.

      1 Reply Last reply
      0
      • M Member 3919049

        Hi - I have a website that I'm running locally. I have a notification routine on an external public website that needs to pass a url to an ashx handler through my local website (paypal ipn integration). Can I configure my local machine to expose my local website by ip address to accept url requests from an external website? How can I do this? I tried replacing "localhost" in the url with my local ip address. I got my ip address through cmd > ipconfig. http://75.228.51.999:2076/MyWebSite/Login.aspx[^] When I tried to run it with my ip address locally my browser didn't find the page so I'm guessing that this page wouldn't load from an external machine. Also, are there any additional precautions I should take for this from a security perspective? It's probably an easy question but I've just never done it before....

        A Offline
        A Offline
        Adam R Harris
        wrote on last edited by
        #3

        127.0.0.1 will loopback to your local IIS. The port could be causing an issue, check that either the default site has that port added in its Host Headers or make sure a site exists under that port.

        If at first you don't succeed ... post it on The Code Project and Pray.

        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