4

I really want to share my localhost over the internet to show my friends the progress of the website we're working on, so that I don't need to upload it to the public server each time I make a change.

showoff.io is not free and localtunnel gives me "failed to authenticate" when trying to upload my public key (a lot of people seem to have this problem and there doesn't seem to be a solution for this).

Does anyone know any other free service I can use or any other solution at all? I'm using a Mac.

Thanks.

UPDATE: with localhost I mean a web server running on my computer, I have a dynamic IP address and no I'm not behind a router (just using a wireless modem).

Loolooii
  • 181
  • 2
  • 2
  • 5
  • 1
    By "localhost", do you mean a web server running on your computer? (Usually the term just means "this computer".) – u1686_grawity Apr 28 '12 at 19:41
  • Yes, that is what I mean. – Loolooii Apr 28 '12 at 19:43
  • 1
    would be good to know how your computer connects with the net, eg 'are you behind a router?' 'do you have a dynamic or static IP?' – Baarn Apr 28 '12 at 20:07
  • @ekaj Quote: "I'm using a MAC". I guess he means a Mac, not a MAC (I mean, he'll be using a MAC address too, somehow *cough*) – slhck Apr 28 '12 at 20:12
  • @WalterMaier-Murdnelch , updated the question with your answer. – Loolooii Apr 28 '12 at 20:19
  • @slhck you're right it should be Mac :) – Loolooii Apr 28 '12 at 20:20
  • possible duplicate of [What is port forwarding and what is it used for?](http://superuser.com/questions/284051/what-is-port-forwarding-and-what-is-it-used-for) – Nifle Apr 28 '12 at 20:59
  • 1
    Possible duplicate of [What is port forwarding and what is it used for?](https://superuser.com/questions/284051/what-is-port-forwarding-and-what-is-it-used-for) – Giacomo1968 Jun 03 '19 at 16:22
  • @JakeGould this is a long time ago, but this was about a service similar to https://ngrok.com/ which tunnel the localhost for viewing. It's in no way a general topic like port forwarding and I think for that reason is not a duplicate. – Loolooii Jun 03 '19 at 16:39
  • Checkout this answer. It's already solved. https://stackoverflow.com/questions/5108483/access-localhost-from-the-internet – milindchauhan95 Nov 11 '21 at 09:44

4 Answers4

3

Are you behind a firewall or router that does NAT? Then you need to configure it to do port-forwarding of a port to your machine, or put your machine into a DMZ. Check the manual of your router/firewall.

Is your ISP allowing traffic from the internet to 'lower ports' like 80 (the TCP port for HTTP)? Chances are it doesn't and you need to select a port somewhere above 1024, for HTTP 8080 is popular.

Unless you're pretty sure the public IP number is fixed and you're OK to disseminate a URL with the address in it, you should set up a dynamic DNS solution. There are a few free and payed services, here's one I found with a quick google: http://www.dtdns.com/

Combining the above, you get a URL to publish that looks like this: http://yoy.slyip.net:8080/primes/

Stijn Sanders
  • 2,426
  • 3
  • 26
  • 25
1

There's an app called Portly made specifically for Mac that I developed that lets you share your localhost over the internet via an SSH tunnel. There's a free plan that might interest you.

Kelly
  • 121
  • 4
  • Might help to state clearly that you're a dev for this in your answer. And as always, get lots of good will by answering questions other than your product (since if you're here entirely for that, someone might mistake you for a spammer). Just a friendly headsup – Journeyman Geek Aug 29 '13 at 00:43
  • Good call -- I mostly contribute on Stack Overflow, so my reputation lacks a bit on this site. – Kelly Aug 29 '13 at 21:12
0

If you want share your local, you can use https://localtonet.com

Download app for OS, and start HTTP,TCP, UDP tunnels

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Nov 11 '21 at 08:48
0

If your website is static, you could use DropBox, as briefly described in this Lifehacker article, and in more detail in this article.

Alternatively, you could set up Hamachi, which would allow you to set up a mesh VPN with your friends. That should allow them to access your local web server.

Geoff
  • 2,577
  • 1
  • 17
  • 17