allocating an IP address

Miracle_Max

Registered
Is there a way i can allocate myself an IP address if i am not connected to the net? I am running php and apache and need an IP address to load my php pages in my sites folder.
Thanks
Miracle Max
 
Thanks for you reply.
I have tried all the options you have suggested, however, neither of them work.
when trying rendezvous name or using 127.0.0.1 as my IP, I get the error message "a connection failure has occurred", or "The attempt to load 'accessing URL http://localhost/~user etc' failed" when using localhost.
I tried them on my other mac, and it works...
Are there any settings i need to check?
Thanks...
Max
 
Have you tried "Network Utility" (Applications/Utilities/Network Utility), use the Ping tab and try pinging localhost and 127.0.0.1

Also have a look in "Netinfo Manager", look in the "machines" section and check localhost is defined.

My clamshell iBook-SE used to show similar messages under 10.1 when there was nothing plugged into the ethernet port - I got round this by hooking it up to my 4-port hub????
I don't know if the problem was still there when I upgraded to Jaguar because I was always plugged into my hub by that point.

good luck
 
try editing you location in network prefs so that ethernet is the only avaliable method of connection. I remember once my imac used to try and dial out when i did exactly that. Make a new location and have built i ethernet as the only active network connection
 
Thank you both for your replies.
I have looked into what you both said. I can ping myself, and 127.0.0.1 and localhost are both defined under machines in the network utility. Also, my network settings are always set to ethernet. I have tried connecting to this server when i have been plugged into my hub, but i get the same error, so it doesnt matter if i am plugged into a network or not. I want to be able to connect through this server when it is stand alone.
I am having this problem with a powerbook G3 400, and it works on my new iMac G4 800, so could it be some sort of incompatibility since the machine is older?
Thanks again,
miracle max
 
ok...


have you changed any settings in your httpd.conf file?
are you sure apache is running?, is it running on port 80
Is mac os x's built in filewall blocking it?


open terminal run 'top' and see if httpd is running.

open network utility and run a port scan on 127.0.0.1, port 80 should be open
 
hi,

as it turns out, httpd was not running and apache was not running on port 80. So i restarted the server, and its all good.
Thank you very much for your help, it is greatly appreciated.
Max
 
Back
Top