Thread
webserving on the road...
not sure if this belongs in this forum or the OS-X Server ones, anyway here goes
am having a problem with IP Address' and OS-X Server 10.1.5.
i have a G4 DP-450 which i use for internal WebObjects development. i have a static IP address setup on the server (192.168.0.21) and when i try and access the website from any other machine on the network http://192.168.0.21/cgi-bin/WebObjects/AppName it works fine.
However, i sometimes take the server and a 17" Apple LCD on the road for when i do demonstrations to clients. This is where the problem lies.
For some reason, if the server isnt plugged into a network, it drops the IP address (even though i have set it up as static in the System Preferences), therefore i cant access it using the URL mentioned above. the only solution so far is to carry along a 5port powered hub and some cat5 and it seems to work again.
Using http://localhost/... dosnt seem to work either
can someone explain why it does this? And if there is an easier solution to rectify this problem?
Im going to be purchasing a powerbook in the future and dont really want to be carrying a hub around to do demos - cause it kinda defeats the purpose
thanks
am having a problem with IP Address' and OS-X Server 10.1.5.
i have a G4 DP-450 which i use for internal WebObjects development. i have a static IP address setup on the server (192.168.0.21) and when i try and access the website from any other machine on the network http://192.168.0.21/cgi-bin/WebObjects/AppName it works fine.
However, i sometimes take the server and a 17" Apple LCD on the road for when i do demonstrations to clients. This is where the problem lies.
For some reason, if the server isnt plugged into a network, it drops the IP address (even though i have set it up as static in the System Preferences), therefore i cant access it using the URL mentioned above. the only solution so far is to carry along a 5port powered hub and some cat5 and it seems to work again.
Using http://localhost/... dosnt seem to work either
can someone explain why it does this? And if there is an easier solution to rectify this problem?
Im going to be purchasing a powerbook in the future and dont really want to be carrying a hub around to do demos - cause it kinda defeats the purpose

thanks
For some reason, OS X doesn't like to resolve http://localhost/. Use http://127.0.0.1/ instead.
tooki
tooki
thanks for the suggestion, but its not really a solution because it would mean i would have to change all the (WebObjects) application settings, database connection settings etc etc everytime i want to take it on the road.
Well, if you are willing to try "localhost" then you should be willing to try "127.0.0.1", which is the so-called "loopback" address (which is what localhost is supposed to resolve to, even). Using 127.0.0.1 will continue to work even when you have a LAN link (the loopback never goes down unless the TCP/IP stack has crashed, in which case you need to restart anyway).
I suppose you could try manually putting an entry for "localhost -> 127.0.0.1" into your hosts file.
tooki
I suppose you could try manually putting an entry for "localhost -> 127.0.0.1" into your hosts file.
tooki
thanks for your help Tooki. i tried http://127.0.0.1 and it didnt work 
I did some poking around and found that when you open Network Utility it claims the IP address is 6.3.6.0, and when you try and connect to server admin it puts an IP of 0.0.0.0 in the server address.
If you try and connect (to server admin) with 192.168.0.21 it wont work. If you try localhost, 127.0.0.1 or 0.0.0.0 it works! bizzare!
Once you are in server admin it says there is an error with the SLP Service, and you cant start the Web service (apache). if a powered hub is plugged in ths problem dosnt appear.
now the truly weird part, if i goto a browser, http://localhost, http://192.168.0.21 and http://127.0.0.1 wont work. But you can still access http://localhost:1085 or http://127.0.0.1:1085 which is the WebObjects task daemon configuration
very strange!

I did some poking around and found that when you open Network Utility it claims the IP address is 6.3.6.0, and when you try and connect to server admin it puts an IP of 0.0.0.0 in the server address.
If you try and connect (to server admin) with 192.168.0.21 it wont work. If you try localhost, 127.0.0.1 or 0.0.0.0 it works! bizzare!
Once you are in server admin it says there is an error with the SLP Service, and you cant start the Web service (apache). if a powered hub is plugged in ths problem dosnt appear.
now the truly weird part, if i goto a browser, http://localhost, http://192.168.0.21 and http://127.0.0.1 wont work. But you can still access http://localhost:1085 or http://127.0.0.1:1085 which is the WebObjects task daemon configuration
very strange!