Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 749
  • Last Modified:

cmd promt for $_SERVER['REMOTE_ADD']

How can i get by windows command prompt, the same IP # that i get by $_SERVER['REMOTE_ADD'] ??
0
portal123
Asked:
portal123
1 Solution
 
str_kaniCommented:
REMOTE_ADDR -- The IP address from which the user is viewing the current page.

do you like to see the IP address return by this in the command prompt? if so i think it's not possible as the definication says it returns the IP address of the end user. This would be application only for browser requests.
0
 
portal123Author Commented:
As you know ipconfig command by command prompt in Windows XP to get a local IP address, I get my IP ADDREES by 'ipconfig' command at my computer. But when I compare my  local IP address in my computer with a IP address that i can see by $_SERVER['REMOTE_ADDR'].   Pretty much different...

Sometimes, my local IP address change because my computer's internet connection is not exactly in global IP system. Everytime this happen, I need to access to $_SERVER['REMOTE_ADDR']. So, i just wonder if might find  $_SERVER['REMOTE_ADDR']'s  IP address by command promt in Window XP of my local computer, in place of checking $_SERVER['REMOTE_ADDR'].

I guess,  the IP address that i can get by $_SERVER['REMOTE_ADDR'] is NOT a real IP address, right??  It's a Kind a IP address that filtered by a  router and given a different IP address number by the router.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now