Exposing My Home Server Without Port Forwarding

I run several servers at home.

I enjoy setting up and operating my own infrastructure, so naturally I wanted to make some of the services running on those machines accessible from outside my home.

But publishing a home server on the internet raises an important question: how do people connect to it?

A common approach is to configure port forwarding on a router. I wanted to avoid revealing my home server's public IP address directly whenever possible.

So I chose a combination of a VPS, a reverse proxy, and an encrypted network tunnel.

I briefly mentioned this setup in my earlier post, “Servers in Canada and a Warm Room”.

That article was about my infrastructure in general, so I did not explain the arrangement in detail. But it occurred to me that this setup could be useful not only to people who want to avoid directly exposing a home IP address, but also to those dealing with other network restrictions.

This time, I want to explain how the pieces fit together and where the same approach can be useful.

1. What is a reverse proxy?

First, let me explain what a reverse proxy is.

A conventional web server can receive requests directly from visitors.

When someone opens a website, a server associated with its address receives the request and returns content such as HTML pages or images.

A reverse proxy sits between the visitor and the server running the application.

Instead of connecting directly to the application server, the visitor connects to the reverse proxy.

The proxy forwards the request to the appropriate server and then returns that server's response to the visitor.

Imagine I have a web server running at home.

Rather than having each visitor connect to my home server, I put a reverse proxy in front of it. Requests arrive at the proxy first, and the proxy passes them on to the server at home.

The visitor can use the website without needing to know much about the intermediate server.

Reverse proxies have several uses. They can provide a single entry point, route requests among services, handle HTTPS connections, or filter certain requests.

With a suitable configuration, they can also keep the application server's IP address out of the information visitors normally see.

That last possibility was particularly interesting to me.

2. Why did I want to avoid exposing my home IP address?

My main reasons were security and network management.

Exposing a service from home commonly involves configuring a router or firewall to accept inbound connections.

I wanted to avoid having my home internet connection and servers directly receive public traffic whenever possible.

One thing I was especially concerned about was a DDoS attack.

If someone floods my public home IP address with traffic, the effect might not be limited to a particular application. It could also disrupt the internet connection I use at home.

Publishing an IP address does not automatically mean an attack will happen, of course.

And concealing an address does not guarantee that every attack will be prevented.

Still, I preferred to place the public entry point somewhere other than my home.

I therefore decided to run the actual services at home while giving visitors the public address of a separate VPS.

VPS stands for Virtual Private Server: a virtual machine provided by a hosting or cloud company.

Put simply, it is a remote computer you rent and can access over the internet.

For this role, I provisioned a virtual server using the free tier of Oracle Cloud Infrastructure (OCI).

That VPS became the public entry point to my home-hosted services.

3. Connecting an Oracle Cloud VPS to my home server

A VPS does not automatically have a way to reach a computer on my home network.

The two machines need a network path between them.

I used Tailscale to establish that path.

Tailscale is a service that helps connect devices through an encrypted network built on WireGuard.

WireGuard is a VPN technology that encrypts network traffic between devices. Tailscale adds conveniences such as device authentication, connection management, and NAT traversal.

This can let devices on different networks communicate as though they were part of the same private network.

In my setup, I connected the Oracle Cloud VPS and my home server through Tailscale.

The VPS can receive a request from the public internet and forward it to my home server using its Tailscale connection.

An important point is that traffic between the VPS and my home server travels through a WireGuard-based encrypted connection.

An encrypted tunnel does not solve every security problem, but it gives me a different network architecture from exposing the internal service directly to the internet.

4. What path does the traffic actually follow?

The overall path looks like this:

Visitor → reverse proxy on Oracle Cloud VPS → encrypted Tailscale connection → web application on my home server

The response travels back in the other direction:

Home server → Tailscale → VPS → visitor

Here is what happens in more detail.

Step one: the visitor connects to the VPS

Suppose someone wants to access a service I have made public.

To simplify the explanation, imagine they connect directly to an IPv4 address rather than using a domain name.

They connect to the public IP address assigned to my Oracle Cloud VPS, not the address of my home server.

The VPS is the public entry point.

If I use a domain name that points to the VPS, the basic principle is the same.

Step two: the reverse proxy forwards the request

A reverse proxy program is running on the VPS.

It receives the visitor's request and forwards it to the server hosting the actual service.

But that application server is not in the VPS's data center.

It is in my home.

The reverse proxy therefore uses the route provided by Tailscale to reach the home server.

It can use an address reachable through the Tailscale network instead of directly targeting the home server's public IP.

Step three: the home server handles the request

When the request arrives, the application on my home server processes it.

It might serve a web page or respond to an API request.

From the application's perspective, the request is delivered through the VPS instead of arriving as a direct connection from the visitor over the public internet.

Step four: the response returns to the visitor

The home server sends its response back over Tailscale to the VPS.

The reverse proxy then sends that response to the visitor.

That is how visitors can use a service running on my home server.

They do not have to install Tailscale themselves.

Only the connection between the VPS and the home server uses Tailscale; ordinary visitors connect to the public VPS.

Any authentication required by the application itself is a separate concern.

5. Does this completely hide the real server's IP address?

I want to be precise about this part.

Using a reverse proxy and Tailscale does not somehow encrypt the home server's public IP address and make it disappear.

What gets encrypted is the network traffic carried over the Tailscale connection.

My goal is to make it unnecessary for ordinary visitors to know or use my home server's public IP address when accessing the service.

Visitors connect to the public VPS. The route to the actual server is behind it.

If the service's DNS records and responses do not separately disclose the home address, and there are no direct public access paths to the home server, visitors would not ordinarily learn that IP just by using the service.

But this setup does not provide absolute anonymity.

Other DNS records, previously published addresses, or application configuration mistakes could still reveal the origin IP.

The VPS itself also remains exposed to the public internet.

An attacker could target the VPS or exploit vulnerabilities in an application reachable through the proxy.

So the presence of a reverse proxy does not mean security is complete.

Access controls, firewalls, and software updates still matter.

It is also important to restrict which devices and services are reachable through the Tailscale network connecting the VPS and home server.

I view this design not as a perfect security solution, but as a way to reduce the direct public exposure of my home server.

6. It is useful when port forwarding is unavailable

So far, I have explained why I chose this setup.

But hiding an origin IP is not its only advantage.

For other people, its most useful feature may be the ability to publish a service when port forwarding is difficult or impossible.

What is port forwarding?

On a typical home network, several devices share one internet connection through a router.

Each local computer usually has a private IP address.

That private address cannot ordinarily be reached directly from the public internet.

To forward an incoming connection to a particular computer, the router may need a rule identifying which internal device should receive traffic arriving at a given port.

This is called port forwarding.

For example, a router could be configured to send connections arriving on a particular public port to a web server inside the home.

This makes the internal service reachable from outside.

But not everyone can configure such rules.

What if you cannot control the router?

In an apartment building or dormitory, for example, you might not have administrative access to the network equipment.

Several households might share one managed network, or you might not be allowed to change the upstream router.

Double-router setups can create a similar problem.

Having two routers does not automatically make port forwarding impossible. If you can configure both, you may be able to create the necessary forwarding rules.

But if you cannot access the upstream router, things become more difficult.

Another example is CGNAT (Carrier-Grade NAT), where an internet provider places customers behind its own network address translation. Configuring port forwarding on your personal router may not make ordinary inbound IPv4 connections possible.

In these situations, running a server is easy enough, but giving outsiders a route to it can be difficult.

This is where a VPS with a public IP and a connection tool such as Tailscale can help.

Instead of opening an inbound port on the home router, the home server and VPS establish connectivity, and the VPS accepts and forwards the public requests.

The local network must still allow the outbound traffic needed for Tailscale, and the connection must actually succeed.

Depending on network conditions, Tailscale may establish a direct peer-to-peer connection or use a relay.

Performance is therefore not guaranteed to be the same in every environment.

Even with those qualifications, it is worth considering when you do not have permission to configure port forwarding.

7. This can work for more than web servers

Is this only useful for hosting websites?

Not at all.

Using a public VPS to accept traffic and forward it into a private network can support different kinds of services.

However, the exact setup depends on the network protocol each service uses.

Websites and backend APIs

Web servers are the most straightforward example.

I could run a personal website on a machine at home and let visitors connect through the VPS.

A backend API can work similarly.

For HTTP or HTTPS services, a conventional web reverse proxy such as NGINX can forward requests to the internal application.

If several services share the VPS, the proxy can route traffic according to domain names or URL paths.

Game servers such as Minecraft

The same broad approach can be adapted for game servers.

For example, a Minecraft server could run at home while players connect to the VPS's public address.

There is an important distinction, though.

The HTTP reverse proxy configuration used for websites does not necessarily work unchanged for game servers.

They may use different network protocols.

Minecraft Java Edition generally uses TCP, whereas Bedrock Edition uses UDP.

Depending on the game, you need a proxy or port-forwarding arrangement that can carry the relevant TCP or UDP traffic.

The underlying idea is similar, but the specific software and configuration can be different.

Assuming every service works through an ordinary HTTP reverse proxy can lead to problems.

Other personal services

The approach can also be used for personal web dashboards or test applications.

However, I would not recommend making every administration tool public just because it is technically possible.

Sensitive services such as administrator dashboards or server management interfaces may be better kept inside a private network, accessible only to authorized devices.

The important question is not how to publish everything, but which services should be accessible to whom.

8. Things to consider when operating this setup

So far, this might sound like a very convenient design.

It is useful, but there are trade-offs.

First, the network path becomes longer.

Instead of communicating directly with the home server, visitors go through the VPS.

And Tailscale does not always establish a direct connection between peers.

If network conditions require a relay, latency or throughput may be affected further.

I previously experienced concerns about routes and connection stability while self-hosting my website.

I discussed those experiences in “Why I Moved My Website Away from Self-Hosting”.

So I would not claim that a VPS-based route is always faster than a direct connection.

The VPS also becomes a dependency.

Even if the home server is healthy, visitors may lose access when the VPS goes down or the tunnel becomes unavailable.

Costs matter too.

I used Oracle Cloud's free tier, but free resources come with limits and conditions.

Heavy traffic could make VPS bandwidth or processing capacity a bottleneck.

And using a free tier does not necessarily guarantee that no charge is possible under every circumstance. The applicable service terms and account settings should be checked.

Finally, there is security administration.

The VPS's public ports and firewall rules, Tailscale access permissions, and the internal server's accepted connections all need attention.

For a website, HTTPS between the visitor and the VPS needs to be configured separately.

Encrypting traffic between the VPS and home server with Tailscale does not automatically make the visitor-to-VPS connection HTTPS.

If an application behind the proxy needs a visitor's original IP address, it may also need to process forwarding headers correctly—and only trust those headers from a trusted proxy.

All of this means that a reverse proxy and encrypted tunnel introduce another set of components to maintain.

Depending on the application, the maintenance cost may outweigh the benefits.

9. You do not need to have the same reason I did

My main reason for adopting this structure was that I did not want visitors to connect directly to my home server's public IP address.

But other people may have completely different reasons.

Perhaps they cannot configure port forwarding, or their home connection is not directly reachable from the internet.

Perhaps they want to manage several internal services behind one public address.

Or perhaps they want to keep the applications running at home while moving only the public entry point to a cloud server.

All of these can be reasonable motivations.

A VPS and reverse proxy are not always the right answer, however.

If only you need access to a service, connecting over a private network such as Tailscale without publishing it at all may be simpler.

And for a static website, a dedicated static hosting service might be more convenient.

That is what my own blog uses today: Cloudflare Workers Static Assets.

The VPS-to-home-server architecture described here is therefore not the architecture currently serving this blog's pages.

It is the approach I have used to make services running on my home infrastructure accessible from outside.

What matters is understanding the problem in your own environment before choosing a technology.

Closing thoughts

In this post, I have explained the network architecture I used to expose services running on my home server.

I placed an Oracle Cloud VPS at the public entry point, connected it to my home server through Tailscale, and used a reverse proxy to forward requests over the encrypted network.

For me, the biggest benefit was avoiding direct exposure of my home server's public IP address to ordinary visitors.

The same arrangement can also be useful when port forwarding is unavailable or when several internal services need a single public entry point.

It adds complexity to the network path and introduces more components to manage, so I would not recommend it unconditionally.

But if you run servers at home and are unsure how to make a service accessible from outside, I think it is worth learning about.

I did not begin with a complete understanding of every networking technology involved.

I learned about different approaches while operating my servers and solving the problems that came up, then chose the combination that suited my goals.

I hope this explanation gives others in similar environments a useful starting point.