Handle the "X-Forwarded-For" header parameter for discovering client IP address when request comes via proxy/loadbalancer.

Handle the "X-Forwarded-For" header parameter for discovering client IP address when request comes via proxy/loadbalancer.
state and heartbeatScheduler not needed here