SyntaxFix
Write A Post
Hire A Developer
Questions
Make Sure pyping is installed or install it pip install pyping
#!/usr/bin/python import pyping response = pyping.ping('Your IP') if response.ret_code == 0: print("reachable") else: print("unreachable")