79460236

Date: 2025-02-22 20:21:30
Score: 1
Natty:
Report link

Mention Code Below Will Solve Issue.

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

print("Your Computer Name is:" + hostname)
print("Your Computer IP Address is:" + IPAddr)

uvicorn.run(app, host=f"{IPAddr}", port=8000)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Student