Port 1701: L2TP

Port 1701 (UDP) is used by L2TP. Layer 2 Tunneling Protocol, usually paired with IPsec for VPNs.

1701Port
UDPProtocol
l2tpIANA service name
VPN & proxyCategory

Port range

1701 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

Only open port 1701 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 1701 in a firewall

ufw         sudo ufw allow 1701/udp
iptables    sudo iptables -A INPUT -p udp --dport 1701 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=1701/udp
Windows     New-NetFirewallRule -DisplayName "L2TP 1701" -Direction Inbound -Protocol UDP -LocalPort 1701 -Action Allow

Check if port 1701 is open

nc -vzu example.com 1701   # UDP checks are unreliable: no reply ≠ closed
sudo ss -tulpn | grep ':1701 '   # what is listening locally (Linux)

Other vpn & proxy ports

Frequently asked questions

What is port 1701 used for?
L2TP. Layer 2 Tunneling Protocol, usually paired with IPsec for VPNs.
Is port 1701 TCP or UDP?
UDP.