I use Calibre to manage my ebooks.
Caibre has a server option, which I can access on my Ubuntu 12.10 machine through the link:
http://my_computer_name:8080 or through http://my_IP_address:8080.
On another machine on the local network, I can access the server through the IP address but not through the computer name. Since the IP address changes every time I connect, I wish to be able to connect through the computer name.
How do I go about it?
Some information:
There's a router which manages my network but I do not have much information on it, since I'm not administrator of the network. However, both machines are on the same local network.
cat /etc/hostname gives username-computer-name
avahi-resolve --name username-computer-name.local gives something like this: username-computer-name.local ff70::465d:57ef:fed5:dd46. (What is this?)
avahi-resolve -n username-computer-name.local gives my my 192.168.0.xxx IP address, the one assigned by the router.
ping username-computer-name gives: 64 bytes from username-computer-name (127.0.1.1): icmp_req=1 ttl=64 time=0.017 ms but my IP address accessible through the network is not 127.0.1.1 but 192.168.0.xxx. I can successfully ping the latter address as well.
avahi-resolvesyntax you're using is wrong (missing--name). 2)avahi-resolvewill use IPv6 link-local whereas Ubuntu is configured to use regular IPv4 addresses (as shown in my answer) 3) Don't useavahi-resolveas it's not the same as resolving in other applications. Usepingfor example instead. – gertvdijk Feb 1 at 11:18