-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,739
  • 3
  • 21
  • 38
Xavi
  • 2,492
  • 7
  • 36
  • 58

1 Answers1

2
$_SERVER['REMOTE_ADDR']

use this

shabeer
  • 1,044
  • 9
  • 17