I'm trying to see what my server's request IP is. For example.
<?php
$contents = file_get_contents("https://example.com");
?>
I want to know what IP my server is using to connect to example.com
. I cannot use tools like IPLookUp because that just gets the IP of the response and if I have cloudflare on my domain, then it will keep showing cloudflares proxy IP's.
If I use $_SERVER['SERVER_ADDR']
it just shows me the local IP 127.0.0.7