ip address of the server is incorrect  Using `gethostbyname($_SERVER["HTTP_HOST"])` to define gives a more correct result
ip address of the server is incorrect

Using
gethostbyname($_SERVER["HTTP_HOST"])to define gives a more correct result