py icon indicating copy to clipboard operation
py copied to clipboard

Client.py

Open omar7173970952fg opened this issue 1 month ago • 0 comments

import requests import socket

server_url = "http://YOUR_SERVER_IP:5000/login"

hostname = socket.gethostname() ip = socket.gethostbyname(hostname)

data = { "device": hostname, "ip": ip }

res = requests.post(server_url, data=data) print("Server response:", res.text)

omar7173970952fg avatar Nov 18 '25 18:11 omar7173970952fg