Your Minecraft server won't connect. Your remote desktop is unreachable. Your web server isn't accessible. Nine times out of ten, the problem is a blocked port.
Test any port right now with the Port Checker at IPLocatorTools. Enter an IP and port number — results appear in seconds. Free, no software, no signup.
What Is a Port?
A port is a virtual channel number (0–65,535) that lets a single IP address run multiple services simultaneously. When data reaches your IP address, the port number tells the operating system which application or service should receive it.
Think of your IP address as a building address and ports as apartment numbers. The postman (internet) delivers to the building (IP), but the apartment number (port) determines who gets the mail.
Port ranges:
- 0–1,023 — Well-known ports (assigned by IANA, require admin privileges)
- 1,024–49,151 — Registered ports (common applications)
- 49,152–65,535 — Dynamic/ephemeral ports (temporary connections)
Most Important Port Numbers
| Port | Protocol | Service | Why It Matters | |---|---|---|---| | 80 | TCP | HTTP | Unencrypted web traffic | | 443 | TCP | HTTPS | Encrypted web traffic (SSL/TLS) | | 22 | TCP | SSH | Secure remote server access | | 21 | TCP | FTP | File transfer (insecure) | | 25 | TCP | SMTP | Sending email between servers | | 587 | TCP | SMTP (submission) | Authenticated email sending | | 3306 | TCP | MySQL | Database connections | | 3389 | TCP | RDP | Windows Remote Desktop | | 5432 | TCP | PostgreSQL | Database connections | | 25565 | TCP | Minecraft | Minecraft Java Edition server | | 19132 | UDP | Minecraft Bedrock | Minecraft Bedrock server | | 51820 | UDP | WireGuard | VPN tunnel | | 1194 | UDP | OpenVPN | VPN tunnel |
How to Test If a Port Is Open
- Go to Port Checker
- Enter the IP address or domain you want to test
- Enter the port number (e.g., 25565 for Minecraft)
- Click Check Port
- Results show:
- Open — The port is reachable from the internet ✅
- Closed/Filtered — The port is blocked by a firewall ❌
Important: The Port Checker tests from the internet (external). If your port shows as closed, it means traffic from outside can't reach it — even if the service is running locally.
Common Port Forwarding Problems and Fixes
"My Minecraft server shows port closed — why?"
The most common cause is that port forwarding is not configured on your router.
Fix:
- Log into your router (usually
192.168.1.1or192.168.0.1) - Find Port Forwarding or NAT settings (varies by router brand)
- Create a new rule:
- External port:
25565 - Internal IP: Your PC's local IP (find it with
ipconfigon Windows) - Internal port:
25565 - Protocol: TCP
- External port:
- Save and test again with Port Checker
"My web server port 80/443 is showing closed"
Possible causes:
- Your web server (Apache, Nginx) isn't running — check with
systemctl status nginx - Your firewall is blocking the port — on Ubuntu:
sudo ufw allow 80/tcpandsudo ufw allow 443/tcp - Your cloud provider's security group blocks the port (check AWS Security Groups, GCP Firewall Rules, etc.)
- Your ISP blocks port 80/443 for residential connections (common in some regions)
"Port 22 (SSH) isn't accessible"
- Verify SSH service is running:
sudo systemctl status ssh - Check your firewall:
sudo ufw allow 22/tcp - If using a cloud server: check security group/firewall rules in your cloud console
- Some ISPs block inbound SSH on residential IPs — you may need a VPS or VPN
"My remote desktop (port 3389) won't connect"
- Enable Remote Desktop in Windows: Settings → System → Remote Desktop → Enable
- Open Windows Defender Firewall → Allow Remote Desktop
- Configure port forwarding on your router for port 3389 → your PC's local IP
- Test with Port Checker from outside your network
Security warning: Port 3389 (RDP) exposed to the internet is a major security risk. Attackers constantly scan for open RDP ports and attempt brute-force attacks. Use a VPN for remote access instead of direct RDP exposure.
Open Ports and Security
Every open port is a potential attack surface. Best practice:
Close ports you don't need. Only open ports for services actively in use. A port scanner (like Shodan) reveals your exposed ports to the entire internet.
Change default ports. Attackers scan default ports constantly. Running SSH on port 2222 instead of 22 reduces automated attack noise significantly.
Use fail2ban for exposed services. On Linux, fail2ban blocks IPs that repeatedly fail authentication attempts — essential for any publicly accessible SSH or RDP.
Check for unexpected open ports. Run a port scan on your own IP and compare against what you expect. An unexpected open port may indicate a misconfiguration or compromised service.
Check if your IP is known for abuse using IP Blacklist Checker.
Port Testing for Different Use Cases
For Game Servers
- Minecraft Java: Port 25565 TCP
- Minecraft Bedrock: Port 19132 UDP
- Valheim: Port 2456-2458 UDP
- ARK Survival: Port 7777 UDP
- Terraria: Port 7777 TCP
For Home Servers / Self-Hosting
- Home Assistant: Port 8123 TCP
- Plex Media Server: Port 32400 TCP
- Nextcloud: Port 80/443 TCP (via reverse proxy)
- Pi-hole web interface: Port 80 TCP
For Email Servers
- Port 25 (SMTP) — server-to-server email. Many residential ISPs block this.
- Port 587 (SMTP submission) — authenticated sending, should be open
- Port 993 (IMAPS) — encrypted IMAP for email clients
- Port 995 (POP3S) — encrypted POP3 for email clients
Check if port 25 is blocked on your IP with Port Checker — this is essential before setting up a mail server.
Frequently Asked Questions
My port shows as open on Port Checker but my service still can't connect — why?
The port is open but the application binding to it may be misconfigured. Check that your server is actually listening on 0.0.0.0:PORT (all interfaces) not just 127.0.0.1:PORT (localhost only). Run netstat -tlnp | grep PORT on Linux to verify.
Why can I connect to my server locally but not from outside?
Local connections use your private IP (192.168.x.x) and bypass your router's port forwarding. External connections use your public IP and must be forwarded. This is the most common cause of "works at home but not from outside" problems.
Does Port Checker work for UDP ports? Most port checkers test TCP ports because UDP is connectionless (no handshake to test). For UDP game server ports, the best test is actually connecting a game client.
My ISP blocks port 25 — how do I send email? Use your ISP's SMTP relay, or use a transactional email service like Mailgun, SendGrid, Postmark, or Amazon SES — they relay email through their own servers which aren't blocked.
Is it safe to have port 80 and 443 open? Yes — these are standard web server ports and should be open if you're hosting a website. They are designed to be public-facing.
Related Network Tools
- Port Checker — Test if any port is open or blocked
- IP Blacklist Checker — Check if your server IP is on spam blacklists
- IP Lookup — Find your public IP address and ISP
- DNS Lookup — Verify DNS records for your server domain
- Subnet Calculator — Calculate IP ranges and network masks