Setting the IP address

Mrs_suzette

Registered
Hello,

I have two macs connected by an Airport network. I use PHP for web developpement. Presently the php setup has me on ip 127.0.0.1 for my sites.

Is there a way to change the ip address to something different? and how?

Thanks
 
127.0.0.1 is localhost ip.
i don't understand what you want to say. please be more explicit.
 
3mors said:
127.0.0.1 is localhost ip.
i don't understand what you want to say. please be more explicit.

Having two macs, both connected by airport, both running php ... Am I incorrect in thinking that the address http://127.0.0.1 will resolve to some confusion.

I would like to be able to choose a different IP for each mac so that I can refer to the specific php of each mac.
 
127.0.0.1 refers to localhost, so no, there will be no confusion. However, it won't do what you want. To be able help you, we need to know exactly what you are trying to do.
 
open System Preferences, click on the Network tab and then on the Airport connection. Choose "Manual" from the "Configure By" drop down box. Enter an IP address such as 192.168.0.1 etc, and put in a subnet mask of 255.255.255.0 Make sure each one has a different IP address. You can also use Rendezvous addressing, by going to ComputerName.local where ComputerName is the name you gave your computer in the "Sharing" system pref pane.
 
The problem with what you stated previously is that it doesn't make sense. Why do you need to 'address the php of each mac separately'? As far as I know, this is not possible, so I'm not sure what you're trying to do.
 
Mrs_suzette said:
Having two macs, both connected by airport, both running php ... Am I incorrect in thinking that the address http://127.0.0.1 will resolve to some confusion.

I would like to be able to choose a different IP for each mac so that I can refer to the specific php of each mac.

do u mean the ip of each mac running a webserver with php?

"refer to a specific php" has no sense

if u need to know how to connect to a webserver on another mac, u have to know the ip of that mac or its dns

for example: one mac has this ip 10.0.0.1 and the other 10.0.0.2

if u want to connect to the second one from the first, u have to type:

http://10.0.0.2/ to connect to a web server with safari
afp://10.0.0.2/ to connect to a file server with finder (CMD + K)
smb://10.0.0.2/ to connect to a ftp server
etc etc

right?
 
um..
smb://10.0.0.2/ to connect to a ftp server
that actually connects to a SMB/CIFS (windows file sharing) server. to connect to ftp, surprisingly you use ftp:// :p
 
Back
Top