Thursday, 2 November 2017

How to check your server IP address

If you try to use API for domain registration and payment gateway integration then you need your server IP address. If don't know your right server IP . Just create a page on your server and paste this code then open page you will see your right server IP address.

***************************
 <html>

<body>

<?php

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,'http://www.ipchicken.com/');

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$contents = curl_exec ($ch);

curl_close ($ch);

echo "Your Server's IP : ".$contents;

?>

</body>

</html>
****************************