Skip to content

Client.py #317

@omar7173970952fg

Description

@omar7173970952fg

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions