Network security

Does Tailscale Require Port Forwarding? No — Here's How It Works

Tailscale does not need port forwarding. Here is how NAT traversal and DERP relays replace it, what ports matter, and what to do when connections stay relayed.

Cysoro Security TeamPublished · 9 min read
LAPTOPNASPHONEMESH NETWORK SECURITY Tailscale port forwarding? No — NAT traversal does the job.
Quick answer

No, Tailscale does not require port forwarding. Each device dials out to Tailscale's coordination server, then the devices try a direct peer-to-peer WireGuard connection using NAT traversal. If a direct connection fails, traffic falls back to an encrypted DERP relay, so your router needs no inbound port rules.

Key takeaways

  • Tailscale needs no inbound port forwarding: devices connect out, then punch through NAT to reach each other directly.
  • If NAT traversal fails, traffic still works through an encrypted DERP relay, usually more slowly.
  • For public internet access, use Tailscale Funnel; for private access, use Tailscale Serve. Neither needs a router port forward.

Port forwarding is the usual price of reaching a home server from outside: open a port on your router, hope nobody else finds it, and hope your ISP gives you a public address. Tailscale removes that trade-off entirely.

Does Tailscale require port forwarding?

No, Tailscale does not require port forwarding. You install it on each device, sign in, and the devices can reach each other over a private mesh network. Your router needs no inbound rules, no DMZ host and no dynamic DNS record.

That is the short answer, and it holds for the normal case: reaching your own machines from anywhere. A NAS, a Raspberry Pi or a game server behind your home router becomes reachable from your laptop anywhere, on its own private Tailscale address, while the router's inbound side stays closed.

What Tailscale does not do is also worth stating plainly. It connects devices that are logged in to your tailnet, or shared into it. A stranger on the internet cannot reach anything through it. Exposing a service to the whole public internet is a different job, covered later in this article.

Why does port forwarding exist in the first place?

Port forwarding exists because of NAT, or network address translation. On most home connections your router owns the one public IPv4 address, and every device behind it has a private one. An inbound packet arriving at the router carries no hint about which private device wants it, so the router drops it.

A port forward is a manual rule that says, for example, that traffic arriving on port 8080 should go to the NAS at 192.168.1.10. It works, but it also exposes that service to the entire internet. Anyone who scans your public address can find the open port and try to log in, exploit it or brute-force it.

Carrier-grade NAT makes the problem worse. Some ISPs give your router an address from the shared 100.64.0.0/10 range, as reserved by RFC 6598 for carrier-grade NAT, and a second layer of NAT in the ISP's network maps many homes onto fewer public addresses. In that case, forwarding a port on your own router does not make your server reachable from the internet at all, because the ISP's NAT sits in front of it.

Tailscale sidesteps both problems by never asking the internet to initiate a connection to your home. Every connection starts from inside, going out.

How does Tailscale get through NAT without a forwarded port?

Tailscale gets the same result as a port forward without the rule, in four steps. Each device dials out, learns what it looks like from outside, punches a hole through NAT, and falls back to a relay if punching fails.

How Tailscale connects without a port forward 1Dial outEach device connectsto the coordinationserver outbound 2Learn addressSTUN reveals thepublic IP and portthe router assigned 3Hole punchBoth sides sendUDP packets at oncethrough the NAT 4Relay fallbackIf punching fails,encrypted DERPrelay carries it Every connection starts relayed, then upgrades to direct when it can.
Tailscale NAT traversal in four steps. Illustration by Cysoro.

1. Every node dials out

On start, the Tailscale client connects to the coordination server. It prefers plain HTTP on TCP 80, wrapped in its own encrypted transport, and falls back to HTTPS on TCP 443 when port 80 does not answer. It sends its WireGuard public key and learns the public keys and addresses of every other node in the tailnet.

The coordination server never carries your traffic, only the keys and the address book. Actual data flows directly between devices, or through a relay, never through the coordination server.

2. Each node learns its external address

Each node sends a STUN request over UDP to port 3478 on Tailscale's relay servers. The reply contains the public IP and port that the router assigned to that outbound packet. This is the mapping a port forward would have created by hand, except the router created it on its own for an outbound flow. RFC 5389 defines STUN as a tool for an endpoint to determine the IP address and port allocated to it by a NAT.

If the router supports UPnP or NAT-PMP, Tailscale also asks it for a mapping automatically, which helps, but nothing depends on it. You do not need to enable UPnP for Tailscale to work.

3. Both sides punch through NAT

Node A and node B learn each other's public endpoint through the coordination server. Both send UDP packets from their own WireGuard listener to the other side's public endpoint at the same time. Each router already holds an outbound mapping for its own node, so the packet arriving from the other side matches that mapping and is let in.

This is UDP hole punching. It works on most home routers, and it is why Tailscale usually achieves a direct, fast connection with no configuration at all.

4. When punching fails, traffic stays relayed

Every connection actually starts out relayed through a DERP server, which stands for Designated Encrypted Relay for Packets. If hole punching succeeds, the connection upgrades to direct. If it fails, traffic stays on the relay.

Relayed traffic is still encrypted end to end with WireGuard, so the relay cannot read it. It is usually slower and adds latency, because your traffic takes a detour through a relay server instead of going straight to the other device.

What ports does Tailscale use, and do I need to open any?

Most networks need only outbound access. The values below support Tailscale control, discovery and NAT traversal. They are not TCP or UDP service ports that a traditional router forward would publish.

TrafficPortDirectionWhen it matters
Control and DERP relayTCP 443 (and TCP 80)OutboundRequired on restrictive firewalls so the client can reach Tailscale
STUN endpoint discoveryUDP 3478OutboundHelps a device learn its external mapping for direct connections
Peer-to-peer WireGuardUDPOutboundOutbound UDP must be allowed for a direct connection
Traditional port forwardAny service portInboundNot needed for Tailscale

Do not start by opening an inbound public port. Permit outbound TCP 443 and UDP traffic first. On a corporate firewall, allow the Tailscale domains and the ports above outbound, and check whether UDP is blocked entirely, since that is the most common cause of permanently relayed connections.

You can set a fixed UDP port for a device if your firewall prefers a stable source port. That is a local firewall rule, not a router port forward, and it is optional.

Why is my Tailscale connection relayed, and how do I fix it?

A relayed connection usually means NAT traversal failed. The usual causes are symmetric NAT, carrier-grade NAT, a firewall that blocks outbound UDP, or two devices both behind strict NATs that cannot punch through to each other.

Check the connection status first. In the Tailscale admin console, or with the command line status output, look for whether the peer connection is direct or relayed. If it is relayed, work through these steps in order:

  1. Allow outbound UDP. Make sure your firewall allows outbound UDP, especially UDP 3478 for STUN. Some guest networks and corporate firewalls block UDP entirely.
  2. Try a different network. Test from a phone hotspot. If the connection becomes direct there, the problem is your home or office firewall, not Tailscale.
  3. Check for carrier-grade NAT. Look at your router's WAN address. If it is in the 100.64.0.0/10 range, your ISP uses carrier-grade NAT, and direct connections are harder. Relayed traffic still works.
  4. Restart the client. A fresh connection renegotiates NAT traversal and often upgrades from relayed to direct.
  5. Accept the relay if it works. For browsing files or SSH, a relay is usually fast enough. For large file transfers or gaming, a direct connection matters more.

Relays are not a failure. They are a designed fallback, and they keep the tailnet working in networks where a direct connection is impossible. If you need guaranteed direct performance, a VPS with a public IP as an exit node or relay point is a common workaround.

What about Tailscale Serve and Tailscale Funnel?

Serve and Funnel are the two ways to publish a service through Tailscale, and neither needs a router port forward. They differ in who can reach the service.

Tailscale ServeTailscale FunnelPort forwarding
Who can reach itDevices in your tailnet onlyAnyone on the public internetAnyone on the public internet
Router port forwardNoNoYes
AuthenticationTailnet identity and ACLsPublic, unless the app adds authWhatever the app provides
Typical usePrivate web app, file serverPublic demo, webhook receiverPublic game or web server
Public portsPrivate Tailscale addressHTTPS onlyAny port you choose

Tailscale Serve publishes a local HTTP, HTTPS or TCP service to authorized devices in your tailnet, not to everyone online. It is the right choice for a home dashboard, a NAS web interface or an internal tool.

Tailscale Funnel exposes a supported service to the internet. Treat it like any public endpoint and secure the application behind it, because anyone can reach it. Funnel publishes a service over HTTPS, and supported modes are HTTPS and TCP.

Serve, Funnel or port forwarding? ServeTailnet onlyPrivate web app,NAS, internal toolNo port forward FunnelPublic internetPublic demo,webhook receiverNo port forward Port forwardingPublic internetAny port, anyprotocolRouter port open For private access, Serve replaces port forwarding completely.
Serve, Funnel and port forwarding compared. Illustration by Cysoro.

If you need a public service on an arbitrary port, or a protocol Funnel does not support, port forwarding or a reverse proxy on a VPS may still be the right tool. For private access, Tailscale replaces port forwarding completely.

How does Tailscale compare with plain WireGuard and Cloudflare Tunnel?

Plain WireGuard is the protocol underneath Tailscale, but on its own it needs one UDP port open on the router for the server side, plus manual key management. Tailscale adds the coordination server, key exchange, NAT traversal and relays, so you do not open that port.

Cloudflare Tunnel also needs no inbound port: your server dials out to Cloudflare, and Cloudflare gives you a public HTTPS URL. The trade-off is that your traffic passes through Cloudflare, and the service is public by design. Tailscale keeps traffic private to your tailnet unless you explicitly use Funnel.

For family-only access from phones and laptops, Tailscale's free Personal plan needs the least setup. For a public website, Cloudflare Tunnel is often simpler. For no third-party account at all, plain WireGuard is the choice, if you can open one UDP port.

Our guide to how to secure your Wi-Fi covers the router side of this decision, including why closing inbound ports matters even when you use a VPN.

Is Tailscale safer than port forwarding?

Yes, for private remote access. Port forwarding exposes a service to the whole internet, where anyone can probe it. Tailscale only lets devices in your tailnet reach it, and every connection is encrypted with WireGuard and tied to an identity.

That does not make Tailscale a magic shield. If an attacker steals a device or a login, they join the tailnet. Use strong authentication for the identity provider behind Tailscale, enable MFA, and use access control lists to limit which devices can reach which services.

Also keep the services themselves patched. Tailscale hides them from the internet, but a vulnerable app is still vulnerable to anyone who can reach it through the tailnet. Check your public exposure with our what is my IP tool to confirm that nothing unexpected is public.

Our DNS lookup can also confirm that no unexpected records point at your home network.

Do not forward ports and use Tailscale for the same serviceForwarding a port for a service that Tailscale already provides privately defeats the point. Remove the old forward once you have confirmed Tailscale access works, or the service stays exposed to the internet.

The bottom line

Tailscale does not require port forwarding. It connects your devices through outbound connections, NAT traversal and encrypted relays, so your router's inbound side can stay closed. That works behind most home routers and behind carrier-grade NAT, where port forwarding would not work at all.

If a connection stays relayed, check outbound UDP first, then accept the relay or move the heavy traffic to a direct path. For private access, use Serve. For a public service, use Funnel and secure the app. And once Tailscale works, remove the old port forwards you no longer need.

Frequently asked questions

Does Tailscale require port forwarding?

No. Tailscale does not require port forwarding on your router. Devices connect outbound to Tailscale, exchange keys, and then try a direct peer-to-peer connection using NAT traversal. If that fails, traffic uses an encrypted relay instead.

Do I need a public IP address for Tailscale?

No. Tailscale works behind NAT and behind carrier-grade NAT, where you have no public IPv4 address of your own. That is one of its main advantages over a self-hosted VPN, which usually needs a public address and an open port.

What port does Tailscale use?

Tailscale uses UDP port 41641 by default for peer-to-peer WireGuard traffic, outbound TCP 443 for the control plane and relays, and outbound UDP 3478 for STUN. These are outbound connections, so you normally do not need to forward them inbound.

Why is my Tailscale connection relayed instead of direct?

A relayed connection usually means NAT traversal failed, often because of symmetric NAT, carrier-grade NAT or a strict firewall. Check that outbound UDP traffic is allowed, try a stable UDP port, and check the connection status in the Tailscale admin console.

Can Tailscale expose a service to the public internet?

Yes, with Tailscale Funnel, which publishes a service to the public internet over HTTPS without a router port forward. Funnel is for public services only. For private access by your own devices, use Tailscale Serve instead.

Is Tailscale free?

Yes, Tailscale has a free Personal plan. Tailscale has a free Personal plan, and paid plans add more users and business features. Check the official Tailscale pricing page before you buy, as plan limits changed in 2026.

Is Tailscale safer than port forwarding?

Yes, for private remote access. Port forwarding exposes a service to the whole internet, where anyone can probe it. Tailscale only lets devices in your tailnet reach it, and every connection is encrypted with WireGuard and tied to an identity.

Does Tailscale work with a subnet router?

Yes. A subnet router advertises your home LAN to the rest of your tailnet, so devices without Tailscale installed can still be reached through it. That also needs no port forwarding.

Sources

  1. RFC 5389 — Session Traversal Utilities for NAT (STUN)
  2. RFC 6598 — IANA-Reserved IPv4 Prefix for Shared Address Space
  3. Wikipedia — WireGuard
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against RFC 5389 on STUN, RFC 6598 on shared address space for carrier-grade NAT, and WireGuard protocol documentation.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free