Check Linux System Port’s Status
pip install py-linux-ports
conda install py-linux-ports
import json
from PyLinuxPorts.PyLinuxPorts import portScan
IpAddress = "192.168.43.133"
PortNumber = 65000
result = portScan(IpAddress, PortNumber)
print(json.dumps(result, indent=4))
with open('result.json', 'w') as i:
json.dump(result, i)
MIT Licensed
Sujit Mandal