Hello, I'm working on my client-server project and I need to run it somewhere to show my teacher that it works. Can I run my server here? Here is a link to its GitHub page sys_monitor/server.py.
I use socket
and server_socket = socket(AF_INET, SOCK_STREAM)
, and I use only builtin libraries - threading
, sqlite3
, datetime
and re
.
And if it's possible, how do I setup server IP and port?
self.address = 'localhost'
self.port = 5000
...
server_socket = socket(AF_INET, SOCK_STREAM)
server_socket.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
server_socket.bind((self.address, self.port))
server_socket.listen()
...
client_socket, addr = server_socket.accept()
If it's impossible, what alternatives do I have? Thank you!