PHP gives a different IP address for my site from $_SERVER['SERVER_ADDR'] than other sites see when I access them through cURL (or file_get_contents, or whatever). I know this because I had my site download whatismyip.com and it gives something different than that server variable.
Adding to this annoyance is the fact that the outgoing IP seems to vary on a day-to-day basis. It might be more frequent than that, not completely sure. This is very frustrating indeed, because I'm utilizing an API that relies on hash's generated using the sending IP. So I can't even hardcode the outgoing one to use the API.
Why are these IP's different, and is there a way to dynamically get the one that other sites see me as when I open sockets with them? Or a possible work around?
Background: I'm on shared hosting with Godaddy.