Change master to run a http server instead of net

Handle X-Forwarded-For header for the IP address