Hi,,
Is it possible to get IP of server where the script is running.
I used following code
<?php
echo $ip=$_SERVER['REMOTE_ADDR'];
echo $_SERVER['SERVER_ADDR'];
?>
But it outputing as "127.0.0.1".
Is there any way to print IP ?
Hi,,
Is it possible to get IP of server where the script is running.
I used following code
<?php
echo $ip=$_SERVER['REMOTE_ADDR'];
echo $_SERVER['SERVER_ADDR'];
?>
But it outputing as "127.0.0.1".
Is there any way to print IP ?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.