开发者

Access localhost from the internet [closed]

开发者 https://www.devze.com 2023-02-13 01:17 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
开发者_如何学编程

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 6 years ago.

Improve this question

I need to forward my localhost for a short period of time for testing purposes. It has to be accessed from the public internet.

How can I achieve this?


There are a couple of good free services that let you do the same. Ideal for showing something quickly during development/testing:

  • http://localtunnel.me/
  • https://ngrok.com/
  • http://localhost.run/
  • Cloudflare Tunnel

Edits:

  • add ngrok service
  • add localhost.run service
  • 04/22 - add CloudFlare Tunnel


You go into your router configuration and forward port 80 to the LAN IP of the computer running the web server.

Then anyone outside your network (but not you inside the network) can access your site using your WAN IP address (whatismyipcom).


Even though you didn't provide enough information to answer this question properly, your best shots are SSH tunnels (or reverse SSH tunnels).

You only need one SSH server on your internal or remote network to provide access to your local machine.

You can use PUTTY (it has a GUI) on Windows to create your tunnel.


use your ip address or a service like noip.com if you need something more practical. Then eventually configure your router properly so incoming connection will be forwarded to the machine with the server running.


You are accesing localhost, meaning you have a web server running on your machine. To access it from Internet, you need to assign a public IP address to your machine. Then you can access http://<public_ip>:<port>/. Port number is normally 80.


Try with your IP Address , I think you can access it by internet.

0

精彩评论

暂无评论...
验证码 换一张
取 消