端口在线检测


域名或 IP地址

端口号



关于端口在线检测:

这个专业在线开放端口在线检测工具可以帮助您检测任何服务器是否在特定端口开放, 也可以检测您的服务器端口转发设置是否正确.常用端口列表:

常用端口 简介
21 FTP (File Transfer Protocol)
22 SSH (Secure Shell)
23 TELNET (Remote Login Service)
25 SMTP (Simple Mail Transfer Protocol)
53 DNS (Domain Name System)
80 HTTP (Hypertext Transfer Protocol)
110 POP3 (Post Office Protocol)
115 SFTP (Simple File Transfer Protocol)
443 TLS/SSL (Transport Layer Security)
3306 MySQL Database
8080 Apache Tomcat Web Server

comic port checker

更多关于端口检测的链接:

维基百科 (端口): https://en.wikipedia.org/wiki/Port_(computer_networking)

常用端口列表: https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

用Python进行端口检测 (用 package socket):

import socket


def port_checker(ip_address_or_domain, port_number):
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    try:
        sock.connect((str(ip_address_or_domain), int(port_number)))
        return "PORT {0} is OPEN on '{1}'.".format(port_number, ip_address_or_domain)
    except Exception as e:
        print(str(e))
        return "PORT {0} is CLOSED on '{1}'.".format(port_number, ip_address_or_domain)
    finally:
        sock.close()


print(port_checker('myipaddress.pro', 443))

-------------------
PORT 443 is OPEN on 'myipaddress.pro'.
    

专业开发工具箱