Server running in separate thread