service discovery from different subnet ?

53 views
Skip to first unread message

mlampert

unread,
Sep 23, 2019, 6:45:25 PM9/23/19
to Machinekit
I have linux running in a VM and want to connect to MK, which is connected to the same subnet as the host. Virtualbox seems to assign an IP of 10.0.2.15 to the guest (and 10.0.2.2 to the host) and my local network is on 192.168.1.0.

I understand that mDNS (zeroconf) only works within the same subnet - so I'm wondering what's the best way of discovering the services from a different subnet

Thanks a lot,
Markus

ce...@tuta.io

unread,
Sep 23, 2019, 7:16:22 PM9/23/19
to mlampert, Machinekit
24. 9. 2019 0:45 od mar...@bibi.ca:
Hi,
I believe that you need Avahi reflector on machine with access to both networks. (Or similar software).

Cern.

>
>
>
> --
> website: > http://www.machinekit.io <http://www.machinekit.io>> blog: > http://blog.machinekit.io <http://blog.machinekit.io>> github: > https://github.com/machinekit <https://github.com/machinekit>
> ---
> You received this message because you are subscribed to the Google Groups "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to > machinekit+...@googlegroups.com <mailto:machinekit+...@googlegroups.com>> .
> To view this discussion on the web visit > https://groups.google.com/d/msgid/machinekit/4b7981f1-4490-426c-891b-4107e41ed3ea%40googlegroups.com <https://groups.google.com/d/msgid/machinekit/4b7981f1-4490-426c-891b-4107e41ed3ea%40googlegroups.com?utm_medium=email&utm_source=footer>> .
>

ce...@tuta.io

unread,
Sep 23, 2019, 7:21:49 PM9/23/19
to Cern, mlampert, Machinekit
24. 9. 2019 1:16 od ce...@tuta.io:

> 24. 9. 2019 0:45 od mar...@bibi.ca:
>
> Hi,
> I believe that you need Avahi reflector on machine with access to both networks. (Or similar software).
>
> Cern.
>
Or you can set-up your hypervisor to pass-through the networking so you are on same subnet. (But that is cheating and don't answer the question.)

Cern.

>>
>>
>>
>> --
>> website: > http://www.machinekit.io <http://www.machinekit.io>> blog: > http://blog.machinekit.io <http://blog.machinekit.io>> github: > https://github.com/machinekit <https://github.com/machinekit>
>> ---
>> You received this message because you are subscribed to the Google Groups "Machinekit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to > machinekit+...@googlegroups.com <mailto:machinekit+...@googlegroups.com>> .
>> To view this discussion on the web visit > https://groups.google.com/d/msgid/machinekit/4b7981f1-4490-426c-891b-4107e41ed3ea%40googlegroups.com <https://groups.google.com/d/msgid/machinekit/4b7981f1-4490-426c-891b-4107e41ed3ea%40googlegroups.com?utm_medium=email&utm_source=footer>> .
>>
>
> --
> website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
> ---
> You received this message because you are subscribed to the Google Groups "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/LpVPKm8--3-1%40tuta.io.
>

markus

unread,
Sep 23, 2019, 11:55:50 PM9/23/19
to ce...@tuta.io, Machinekit
I got it working with setting up a bridged network adapter
(the cheating solution). I couldn't figure out how to get a reflector
into Windows.

Thanks a lot,
Markus

markus

unread,
Oct 3, 2019, 10:15:09 PM10/3/19
to ce...@tuta.io, Machinekit
And it broke again, not sure why though. The VM has a NIC on the same
subnet. The services are instantiated and the sockets are listening.
If I run a local "avahi-browse --all" it shows all services on all
interfaces for IPv4 and IPv6. If I run the same on another host in the
network - nada.

AFAIK the only thing I changed was the UUID
in /etc/linuxcnc/machinekit.ini because I had two instances running on
different boxes with the same UUID (which I thought was responsible for
the other one not showing up).

I gotta say this this zeroconf business seems a bit finicky.

Any insights or diagnosing leads appreciated,
Markus

markus

unread,
Oct 4, 2019, 1:24:23 PM10/4/19
to ce...@tuta.io, Machinekit
As it turns, while _I_ didn't do anything _Microsoft_ did push an update
to the host in the background which always seems to mess up Virtualbox.
Supposedly the updated doesn't get applied until I restart the box -
that's not quite true in my experience. And resuming any saved VM
after restarting the host will hang after the Windows update and needs a
cold restart.
Reply all
Reply to author
Forward
0 new messages