Port 1080 is the default SOCKS proxy port. A SOCKS proxy relays arbitrary TCP (and with SOCKS5, UDP) connections on behalf of clients. It should not be reachable from the public internet.
- Port
- 1080
- Protocol
- TCP
- Service
- SOCKS proxy
- Expose to internet?
- No
- Also used by
- Dante, SSH dynamic forwarding (ssh -D), Shadowsocks clients
Is port 1080 safe to open?
An unauthenticated SOCKS proxy on the internet is quickly found and used to hide attacks, send spam and commit fraud, all appearing to come from your IP address. It can also give outsiders a route into your internal network.
How to secure SOCKS proxy
- Bind the proxy to localhost or the internal network only.
- Require username and password authentication (Dante
socksmethod: username). - For personal use, run
ssh -D 1080locally instead of a public proxy.
Check if port 1080 is open
Linux: what is listening on this port
sudo ss -tlpn | grep ':1080 'Windows (PowerShell): what is listening
Get-NetTCPConnection -LocalPort 1080 -State Listen | Select-Object LocalAddress, OwningProcess, @{n='Process';e={(Get-Process -Id $_.OwningProcess).Name}}From another machine: is it reachable
nc -zv HOST 1080
# or
nmap -p 1080 HOST
# Windows
Test-NetConnection HOST -Port 1080Test the SOCKS proxy service itself
curl --socks5 HOST:1080 https://example.com -IRestrict port 1080 in the firewall
Replace 10.0.0.0/8 with the network or address that needs access. Docker publishes container ports through its own iptables rules, which bypass ufw; bind published ports to 127.0.0.1 (-p 127.0.0.1:1080:1080) instead of relying on the host firewall.
ufw: allow only your private network, deny everyone else
sudo ufw allow from 10.0.0.0/8 to any port 1080 proto tcp
sudo ufw deny 1080/tcpfirewalld: allow one source network only
sudo firewall-cmd --permanent --remove-port=1080/tcp
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="10.0.0.0/8" port port="1080" protocol="tcp" accept'
sudo firewall-cmd --reloadiptables
sudo iptables -A INPUT -p tcp --dport 1080 -s 10.0.0.0/8 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 1080 -j DROPWindows Firewall (PowerShell, as Administrator)
New-NetFirewallRule -DisplayName "Block 1080 from internet" -Direction Inbound -Protocol TCP -LocalPort 1080 -RemoteAddress Internet -Action BlockMonitor port 1080
Run a TCP port monitor against your public IP on port 1080: here, a failed connection is the healthy result, so you know the firewall is still doing its job. On Linux, the Statance agent also reports every listening port on the server. TCP port monitoring.
Related ports
FAQ
What is port 1080 used for?
Port 1080 is the default SOCKS proxy port. A SOCKS proxy relays arbitrary TCP (and with SOCKS5, UDP) connections on behalf of clients. It is also used by Dante, SSH dynamic forwarding (ssh -D), Shadowsocks clients.
Is it safe to open port 1080?
Not to the public internet. An unauthenticated SOCKS proxy on the internet is quickly found and used to hide attacks, send spam and commit fraud, all appearing to come from your IP address. It can also give outsiders a route into your internal network.
Is port 1080 TCP or UDP?
SOCKS proxy uses TCP on port 1080.
How do I check if port 1080 is open?
On the server, run sudo ss -tulpn | grep ':1080 ' (Linux) or Get-NetTCPConnection -LocalPort 1080 (Windows) to see what is listening. From another machine, run nc -zv HOST 1080 or Test-NetConnection HOST -Port 1080.
Know the moment a port stops answering.
TCP, HTTP, DNS and SSL checks from six regions, plus server metrics from a one-line agent.