Consult the correct Remote-Addr header, and put the net/http.Request.RemoteAddr value in the right form.

Change-Id: Ia1ea185ab57d9369816153e0624cbd61b662614f