Revert "Server: use createServer() method"

This reverts commit a59dc9813113175d205673d586a8ca818300367b.