Solved

cmd promt for $_SERVER['REMOTE_ADD']

Posted on 2006-06-18
2
712 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

810 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