Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Im hosting a small DB app on my computer, my ip is attributed with DHCP and so Im not too sure on how to provide aces to this page that im hosting with MAMP on a Mac, all computers on the network are Macs.

Is it possible that instead of providing my users with

http://192.168.1.64:8888/myapp

use:

(htpp:)//My_Computer_Name_on_the_Network:8888/myapp

Thank you.

PS. never mind the funny address below, im limited to posting only one url :P

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Don't Macs provide the mDNS service for local intranet lookups? If your computer's name is hostname, mDNS should provide hostname.local to be resolvable from other mDNS-enabled computers on the network. So your URL would become:

http://hostname.local:8888/myapp

Test this from the terminal with ping hostname.local (from a computer other than the one hosting your DB).

share|improve this answer
    
This is correct, my problem is solved, thanks. –  user28606 Dec 9 '09 at 17:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.