Solved

cmd promt for $_SERVER['REMOTE_ADD']

Posted on 2006-06-18
2
734 Views
Last Modified: 2013-12-13
How can i get by windows command prompt, the same IP # that i get by $_SERVER['REMOTE_ADD'] ??
0
Comment
Question by:portal123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
str_kani earned 500 total points
ID: 16932152
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
 

Author Comment

by:portal123
ID: 16932595
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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question