Online/Offline Event Detection - Virtual interfaces


#1

Hi!

I’m new with electron and after playing with the Online/Offline Event Detection, I noticed that it does not work when you have an active virtual interface like “VirtualBox Host-Only Ethernet Adapter” which I use to have VM connected to my machine.

I suppose that may be others interfaces in the same situation…

Does somebody have a nice solution for this cases? I would like to know with total guarantee that the application is online or offline.

Thank you!!!


#2

Same issue! Have you resolved your issue since @Bruney3?


#3

Hi @Astrid, I had to avoid this standard method and had to build a custom class using tcp-ping node module.

Most of the time I had to invest here was to develop a promises compliant solution.

I hope this will be helpful.