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