Server: use createServer() method
Server: fix disconnection