In my JUCE app, I display to the user the IP addresses assigned to their computer with
IPAddress::getAllAddresses(). Additionally, I would like to display the type of network interface each IP is assigned to, being either wired (ethernet) or wireless (WiFi).
Lastly, it would be amazing if I could somehow get the WiFi Network name (as seen in the WiFi menus of OSes) of the particular wireless network interface an IP is assigned.
From what I can tell, this interface type & name functionality I am looking for is not in JUCE. Does anyone know a way to achieve this? Preferably a cross-platform solution?
A bit about what I am making and why I am looking for this functionality:
I am making an
OSCReceiver app which is to run on a laptop computer. The user of the application will need to connect a separate mobile computing device over the network to communicate with my
OSCReceiver on the laptop via the OSC protocol.
I want the connection setup to be as user-friendly as possible. Ideally, this would be automatic, but since OSC operates over UDP, I believe I would have to implement some kind of broadcast/handshake system (maybe over TCP to initiate a connection) which sounds difficult. For now, without implementing an automatic connection scheme, I just want the user to enter the IP address & port number into the mobile OSC app to allow for communication. For the user to know the proper connection information, I simply display the IP and port in the
OSCReceiver app and notify them this is the connection information to input into the mobile app.
This sounds simple enough, but when a computer is connected to multiple network interfaces (Ex: one WiFi connection and one ethernet connection), I want the user to easily be able to see which IP Address corresponds to which device, so they can connect the mobile device to the network interface they intend.
Thanks for any help here!