How to use Coherence on a non networked computer?
But all you have is your laptop and no network connection. And the only interface that is up and has an IP address assigned is the loopback one, good ol’ 127.0.0.1.
Now if you start two Coherence instances and they don’t see each other, that’s due to the SSDP multicast messages, which they send out to announce their presence or to search for other UPnP devices, do not reach each other.
The chances are that no IP routing is set up. That’s quite reasonable on a system with only the loopback interface active, but UPnP - to be more precise SSDP - needs it.
The solution is to add either a route for the UPnP multicast address pointing to the loopback interface:
sudo route add 239.255.255.250 loor more
sudo route add default loas multicast packages - good citizens of the IP network - will travel the default route if not explicitly told elsewise.*
If you get networked again, do not forget to remove that route. Of course having that done automagically by e.g. the Gnome NetworkManager would be much nicer. If you know how, please leave a comment.
* Using a default route is acceptable in this situation, in your own LAN you better go for the UPnP multicast one, as with the default route the packages first will be send to what is mostly your internet gateway, and will be there injected again into your network.