Solved

cmd promt for $_SERVER['REMOTE_ADD']

Posted on 2006-06-18
2
703 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
2 Comments
 
LVL 12

Accepted Solution

by:
str_kani earned 500 total points
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now