HTTPfy

Port 8118 (Privoxy)

Default port of the Privoxy filtering proxy.

Registered (user) port, 1024-49151 TCP Proxies and Tor Localhost or LAN only

What port 8118 is used for

Default port of the Privoxy filtering proxy.

Security: should port 8118 be open?

Localhost or LAN only. Keep on localhost; otherwise it is an open proxy.

IANA assignment

Service nameProtoDescriptionAssigneeReference
privoxy TCP Privoxy HTTP proxy Andreas Oesterhelt -
privoxy UDP Privoxy HTTP proxy Andreas Oesterhelt -

Registry dates for this port: registered 2002-06.

Check what is listening on port 8118

Linux: is anything listening on TCP 8118?
sudo ss -tlnp 'sport = :8118'
Linux / macOS: which process owns the port
sudo lsof -nP -i :8118
Older Linux / BSD (net-tools)
sudo netstat -tlnp | grep ':8118 '
Windows (Command Prompt)
netstat -ano | findstr :8118
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 8118 -State Listen | Select LocalAddress,OwningProcess

Test it from outside

From another machine
nc -vz -w 5 HOST 8118
From Windows
Test-NetConnection HOST -Port 8118

Block port 8118 in the firewall

ufw
sudo ufw deny 8118/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 8118 -j DROP
nftables
sudo nft add rule inet filter input tcp dport 8118 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'Block TCP 8118' -Direction Inbound -Protocol TCP -LocalPort 8118 -Action Block

Related ports

All port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.