support X-Forwarded-For and strip localport in remoteaddr