temp debugging code
Deal with multiple ips

* X-Forwarded-For: client, proxy1, proxy2
* Fall back if header not set
Fprintf
forgot my writer