Jump to content

getServerIP()


'LinKin

Recommended Posts

Posted

Hello,

Time ago when I asked for this function someone gave me a php page.

function getServerIp() 
    callRemote("http://www.nub.hj.cx/getServerIp.php", 
    function(value) 
        if (value ~= "ERROR") then 
            return value 
        end 
    end) 
    return false 
end 

The things is that that page is no longer working...

I really need to find another one, could someone help out with this?

Thanks.

Posted

I guess the PHP script outputs $_SERVER['REMOTE_ADDR'].

Upload the following PHP script and change the url passed to callRemote:

<?php 
    echo $_SERVER['REMOTE_ADDR']; 
?> 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...