rewrite the server to use the utilities for port binding