fb_pixel

How To Check Whether Port Open Or Not?

IT & Software | Network & Security
Description
How To Check Whether Port Open Or Not? In Pytho, Php, C++ ...
Attachments
No attachments
Info
Description
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result = sock.connect_ex(('example.com', 443))
if not result:
    print("Port is open.")
else:   
    print("Port is not open.")

on June 29th, 2020 (1:41 pm)
All coments
This job has not been commented yet.