import sys import socket from requests import get # Download file port = sys.argv[1] name = sys.argv[2] ##### Send our port to global list # Get port host = 'bore.pub' #file = get('https://gitlab.com/justuser31/p2p_justuser/-/raw/main/list_server.info') #s_port = int(file.content) s_port = 43560 # Send our port client_socket = socket.socket() client_socket.connect((host, s_port)) # Input name of server message = str([port, name]) client_socket.send(message.encode()) client_socket.close() print('SERVER POSTED')