Get Server IP which load balancer use to serve

Site has two server and load balancer. For some reason i am trying to find the IP of server which load balancer using (i.e. its using Server1 or Server2).

Basically i need to differentiate the server which load balancer use to serve the user request.

I have tried $_SERVER but no success. Is there a way to archive that?

Note: i am trying it when client make the request.

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.