PRACTICAL SELF-HOSTING GUIDANCE · US
HTTPS and port forwarding for a home website
For conventional direct HTTPS, visitors must be able to reach the server or reverse proxy on TCP 443. DNS, public addressing, provider filtering, router rules, the server firewall and the web service must all agree. A certificate is necessary for trusted HTTPS, but does not make an unreachable server reachable.
Follow the connection through each layer
Start at the domain and follow the intended path: public address, provider network, home gateway, server firewall, and web server or reverse proxy. Confirm the website works locally before diagnosing the public path.
Where IPv4 NAT is used, forward TCP 443 to the intended server’s stable LAN address. With routed IPv6, the equivalent task is generally allowing the incoming flow to the server’s global address rather than translating it to a private IPv4 address. Use the gateway’s documented configuration.
Port 80, port 443 and certificate validation
Let’s Encrypt’s HTTP-01 validation uses port 80. DNS-01 proves domain control through DNS records instead, and TLS-ALPN-01 uses port 443 with a compatible client. Choose a method your configuration supports.
DNS validation can obtain a certificate without incoming HTTP access, but it does not bypass a blocked website port. If visitors cannot reach TCP 443, a valid certificate alone does not solve that problem. Protect any DNS API credentials used by automation and give them only the access needed.
Use a reverse proxy where it simplifies the design
A reverse proxy can receive HTTPS and pass requests to an application on a private interface or loopback address. Caddy can automate certificate management and HTTP-to-HTTPS redirection for eligible public hostnames. The domain must point to a reachable service, and certificate validation must succeed.
Keep application ports private when the public proxy is their intended entrance. Avoid adding port forwards for database, administration or development interfaces just because they exist.
your-domain.example {
reverse_proxy 127.0.0.1:4000
}This illustrates the proxy relationship; it is not a complete installation or firewall configuration.
Test the public route
- Confirm DNS records point to addresses you intend to serve.
- Check the application and reverse proxy are running.
- Check provider filtering and both router and server firewalls.
- Test from a separate network, such as a mobile connection with home Wi-Fi disabled.
- If both IPv4 and IPv6 DNS records are published, test both routes.
A successful request inside the LAN can conceal a broken outside route. A failed test does not identify the failing layer on its own.
Sources and editorial review
Prepared by IndieIP using AI-assisted editorial research. The linked documentation supports the technical distinctions and examples; provider-specific capability and permission are assessed separately.