Answers for "python minecraft server ping"

0

ping with python

import subprocess

def main():
    host = input("Enter Host: ")
    packet = int(input("nEnter Packet: "))
    print("n")
    ping = subprocess.getoutput(f"ping -w {packet} {host}")
    print(ping)

main()
Posted by: Guest on September-17-2021

Python Answers by Framework

Browse Popular Code Answers by Language