How to Check If a Port Is Open
You're trying to set up a game server, access a remote machine, or troubleshoot why an app can't connect. The first question is usually: is the port actually open? Here's everything you need to know about checking ports and what the results mean.
What Are Ports?
If an IP address is like a street address, a port is like a specific door in the building. Each networked device has 65,535 available ports, and different services use different ports to communicate. When you visit a website, your browser connects to port 443 (HTTPS). When you send an email, your mail client connects to port 587 (SMTP).
A port can be in one of three states:
- Open - a service is listening and accepting connections
- Closed - the port is reachable but no service is listening
- Filtered - a firewall is blocking the connection, so you can't tell if it's open or closed
Common Port Numbers
These are the ports you'll encounter most often:
- 21 - FTP (file transfer)
- 22 - SSH (secure shell)
- 25 - SMTP (outgoing email)
- 53 - DNS (domain name resolution)
- 80 - HTTP (unencrypted web)
- 443 - HTTPS (encrypted web)
- 993 - IMAPS (incoming email, encrypted)
- 3306 - MySQL (database)
- 3389 - RDP (Windows remote desktop)
- 5900 - VNC (remote screen sharing)
- 8080 - HTTP alternate (often used for web admin panels)
How to Check a Port
Pointed at a device on your own network, the Port Scanner tool offers a 21-port quick list, a sweep of 1 to 1024, a four-port web set, or a single custom port or range, and it names the usual service for each port it recognises.
From your iPhone
Open PingKit and use the Port Scanner tool. Enter the hostname or IP address and specify the port or range of ports you want to check. PingKit will test each port and tell you whether it's open, closed, or filtered, along with the service name associated with each open port.
Quick scan: If you just need to check one specific port, PingKit lets you scan a single port or a custom range for an instant result. For a broader picture there is a 21-port quick list, a four-port web set, and a full sweep of 1 to 1024.
What the results mean
- Port is open - a service is running and reachable. If this is unexpected, investigate what's running on that port
- Port is closed - the host is reachable but nothing is listening on that port. The service either isn't running or is configured to use a different port
- Port is filtered - a firewall is silently dropping your packets. The port might be open behind the firewall, but you can't reach it from your current network
Common Scenarios
Checking if your server is accessible
If you're running a web server, game server, or any other service, you need to make sure the port is reachable from outside your network. The Port Scanner works on your own network, so it cannot answer that from the inside: use the Security Scan instead, which checks your own public address for the ports most often left exposed (22, 23, 80, 443, 3389, 5900 and 8080). If the port is not answering there, you likely need to set up port forwarding on your router.
Verifying a firewall is working
After configuring firewall rules, scan the relevant ports to confirm they're actually blocked. A port that should be closed but shows as open means your firewall rules aren't applied correctly.
Troubleshooting connection issues
If an app can't connect to a service, scan the service's port to determine if it's a network issue (port filtered/closed) or an application issue (port open but app still can't connect). This saves a lot of time narrowing down where the problem is.
Port Scanning and Security
Every open port is a potential entry point for attackers. Good security practice means:
- Close ports you don't need - if a service isn't in use, stop it
- Keep services updated - open ports running outdated software are the most common attack vector
- Use non-standard ports - moving SSH from port 22 to a random high port (e.g., 49222) reduces automated attacks
- Use a firewall - only allow connections to ports that need to be publicly accessible
For home users: Use PingKit's Security Scan to check your router for commonly exploited open ports and get tailored recommendations based on your router model.
Port Forwarding
If you need a port to be accessible from outside your home network (e.g., for a game server or remote access), you'll need to set up port forwarding on your router. This tells your router to direct incoming traffic on a specific port to a specific device on your local network.
After setting up a port forward, run the Security Scan again to see whether the port now answers on your public address, and use the Port Scanner on your own network to confirm the service is actually listening on the device behind it. If it answers locally but not publicly, check that your ISP isn't blocking it - some ISPs block common ports like 80 and 25 on residential connections.
Related Articles
- Best Port Scanner Apps for iPhone (2026)
- How to Secure Your Home WiFi Network
- What Is Network Security Scoring
- How to Detect Unknown Devices on Your WiFi
- Nmap for iPhone: What Actually Runs on iOS
- netcat and telnet for iPhone: Testing Ports
- Port Scanner for Mac: Built-In Options
- Port Scanner App for iPhone
- Wake-on-LAN Not Working From iPhone: The Failure Checklist
- Wake-on-LAN for Windows 11 From an iPhone: The Full Setup
Scan Ports with PingKit
Check open ports, identify running services, and verify your firewall configuration from your iPhone.
Download PingKit