Well, it turns out that you can simply solve the problem by removing nginx
out of the picture. Just turn it off and then in the python code:
# just get rid of the host name
start_server = websockets.serve(receive_messages, 443)
asyncio.get_event_loop().run_until_complete(start_server)
try:
print("running")
asyncio.get_event_loop().run_forever()
except KeyboardInterrupt:
print("server crashed")
From now on, you’ll be able to connect from any client device(s) at the same time by using your server’s public ipv4 address. This seems to be a useless question for the most part. But, I sure hope it helps someone.
CLICK HERE to find out more related problems solutions.