DEV Community

ShiftyTR
ShiftyTR

Posted on

1 1

How to access local webserver, raspberry pi and gameserver from the Internet

Suppose you are working on a hobby project or building projects on the spot to learn some concepts. Once you have completed the project and it is working as expected, you can share it with your friends and colleagues.

However, you don't want to worry about hosting it on a web server as it involves purchasing a domain name, hosting space, and various other setups.

Now some of you might suggest using the port forwarding option. For those unfamiliar with port forwarding, it is a process of intercepting traffic destined for a computer's IP / port combination and redirecting it to another IP and / or port.

localtonet.com

LocaltoNet is a reverse proxy that enables you to expose your localhost services to the internet.
You can share your local web server, connect your raspberry pi on ssh or its supports local game server like counter strike, minecraft etc.
Its support HTTP/s, TCP and UDP protocols.

Visit the official docs for more information.
Steps to download & use:
> Visit localtonet.com
> Download and unzip file. Start localtonet. Copy Auth Token on your dashboard and paste on command line.
>

ngrok.com

ngrok gives you a public URL for the web app running on localhost.

It is a reverse proxy software that establishes secure connections from a public endpoint to a locally running service.

There are two ways to use ngrok:

Download the software from the official website
Use npm to install
Enter fullscreen mode Exit fullscreen mode

Visit the official docs for more information.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more