Port 23
Port 23 Telnet remote login
Telnet listens on port 23. It sends passwords in plain text, and botnets still sweep the internet for routers and cameras that leave it on.
What is port 23 used for?
Port 23 is the standard port of Telnet, a remote login protocol from the early days of the internet. It has no encryption, so user names, passwords and every command cross the network in plain text.
Servers replaced it with SSH long ago, but routers, cameras, digital video recorders and other small devices still ship with it, often on port 2323 as well.
Why attackers want it
Many devices with Telnet still use the password they shipped with. Botnets such as Mirai log in with lists of those default passwords, download their malware and turn the device into one more bot that scans for the next one.
Who scans port 23
Every address that scanned port 23 from 28 October to 27 November 2026, with known scanners left out.
- AS4837CHINA UNICOM China169 Backbone 8.182
- AS12389PJSC Rostelecom 3.945
- AS9541Cyber Internet Services (Private) Limited 3.634
- AS4134Chinanet 1.823
- AS14061DigitalOcean, LLC 1.212
- AS14593Space Exploration Technologies Corporation 995
- AS8452TE-AS 942
- AS8359MTS PJSC 915
- AS8075Microsoft Corporation 860
- AS3462Chunghwa Telecom Co., Ltd. 821
- People's Republic of China 12.780
- Russian Federation 10.137
- Pakistan 8.314
- Ukraine 7.483
- Brazil 5.669
- United States of America 4.327
- Argentina 2.818
- India 2.499
- Islamic Republic of Iran 1.435
- Germany 1.419
Should port 23 be open?
Port 23 should be closed on every device that faces the internet. Switch Telnet off and use SSH where remote login is needed.
Switch Telnet off
Turn off the Telnet service on routers, cameras and recorders, and close TCP 23 and 2323 at the edge.
Change default passwords
Replace every password a device shipped with, and update its firmware, which often removes Telnet entirely.
Use SSH instead
Where a device needs remote login, use SSH with keys and limit it to known addresses.
Port 23 questions
What is port 23 used for?
Port 23 is the standard port of Telnet, an unencrypted remote login protocol. Routers, cameras and other small devices still use it for their command line.
Is Telnet on port 23 safe?
No. Telnet sends the password and every command in plain text, and botnets constantly try default passwords on it. Switch it off and use SSH.
Why is port 23 scanned so much?
Botnets spread by logging in to devices that still use their factory password. Every infected device then scans for more, which keeps port 23 among the busiest ports on the internet.
How do I block port 23?
Drop inbound TCP 23 and 2323 on your firewall and switch Telnet off on your devices. An IP blocklist of active scanners and botnet servers stops the sources that probe for it.
Block the sources that scan port 23.
An hourly IP feed of active scanners keeps them away from this port and everything else you run.