Created
September 22, 2021 10:36
-
-
Save ShiponKarmakar/766114e04863bde962c81578254dd0d6 to your computer and use it in GitHub Desktop.
login to your hosting package and go to the file manager and in the public_html create a file ipcheck.php and add the following code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<?php | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL,'http://api.ipify.org/'); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$contents = curl_exec ($ch); | |
curl_close ($ch); | |
echo "Your Server's outbound IP : ".$contents; | |
?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment