The solution is simpel. Just add a . (point) to the end of the URL for correct name resolving.
Without this point PHP thinks it's a subdomain of your local domain and so returns the "local-IP".
The solution is simpel. Just add a . (point) to the end of the URL for correct name resolving.
Without this point PHP thinks it's a subdomain of your local domain and so returns the "local-IP".