Fix urlpath for client
Port should be > 0 and < 65536