#!/usr/bin/python3
import json
import sys
from pathlib import Path
import requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import concurrent.futures | |
def ping_ip_port(ip, port): | |
try: | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.settimeout(2) | |
s.connect((ip, port)) | |
print("http://{}:{}".format(ip,port)) | |
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Editor configuration, see https://editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
indent_style = space | |
indent_size = 4 | |
insert_final_newline = false | |
ij_typescript_keep_indents_on_empty_lines = false | |
trim_trailing_whitespace = true |
OlderNewer