Port 23 — Telnet
TCP well-known
What runs on port 23
Unencrypted remote terminal access, superseded by SSH decades ago.
Security considerations
Everything including the password is plain text on the wire. There is no safe way to expose this. If something still needs it, tunnel it.
Checking whether something is listening
# Linux / macOS — what is bound to the port
sudo lsof -i :23
sudo ss -lntp | grep :23
# Windows
netstat -ano | findstr :23
Get-NetTCPConnection -LocalPort 23
# is it reachable from outside?
nc -zv example.com 23
curl -v telnet://example.com:23
Freeing the port
# find the process, then stop it
sudo lsof -ti :23 | xargs kill # Linux / macOS
netstat -ano | findstr :23 # note the PID, then:
taskkill /PID <pid> /F # Windows