In localhost Obtaining the IP address

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
iemem
Forum Newbie
Posts: 1
Joined: Tue Oct 08, 2002 12:49 am

In localhost Obtaining the IP address

Post by iemem »

Hi, I developing a program. but I have a doubt because I want to know the IPAddres when I connect to Internet by modem I have used the $SERVER_ADDR and $REMOTE_ADD, and it gives me the local ip "127.0.0.1" or "192.168.0.1" I would like to know if someone knows how to obtain the modem address, and if possible how can I send an emial.

Thanks
iemem
DSM
Forum Contributor
Posts: 101
Joined: Thu May 02, 2002 11:51 am
Location: New Mexico, USA

Post by DSM »

in windoze go to run in your start menu, type in command and then type in ipconfig, this will give you your ip
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

it's accually: winipcfg

:D
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

winipcfg is 'not recognised as an internal or external command operable program or batch file' on Win2K. ipconfig works though.

Mac
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post by mikeq »

winipcfg works only on win95, 98, ME

on NT, 2K and XP it is ipconfig
Post Reply