-3

I tried like this

echo "$_SERVER['SERVER_ADDR']"; 

It showing IP address of the router,

I want get the global IP address of the client using php,can any one tell me how to get.thanks

Ranjith
  • 2,779
  • 3
  • 22
  • 41
Xavi
  • 2,552
  • 7
  • 40
  • 59

1 Answers1

2
$_SERVER['REMOTE_ADDR']

use this

shabeer
  • 1,064
  • 9
  • 17