This website requires JavaScript.
Explore
Help
Sign In
beenull
/
speedtest
Watch
1
Star
0
Fork
You've already forked speedtest
0
Code
Issues
Pull requests
Packages
Projects
Releases
Wiki
Activity
168b1a4f85
speedtest
/
getIP.php
5 lines
90 B
PHP
Raw
Normal View
History
Unescape
Escape
Outputs Client IP in JSON getIP({"ip":"8.8.8.8"});
2017-02-26 10:13:26 +00:00
<
?
php
Ping test can now use timing from Performance API; New examples; Minor changes
2017-10-30 11:35:49 +00:00
header
(
'Content-Type: text/plain; charset=utf-8'
);
Improved client IP detection; Updated examples
2017-02-26 11:15:51 +00:00
echo
$_SERVER
[
'REMOTE_ADDR'
];
Outputs Client IP in JSON getIP({"ip":"8.8.8.8"});
2017-02-26 10:13:26 +00:00
?>
Reference in a new issue
Copy permalink