I have a rather complex question... thanks in advance for anyone who can help me architect a solution. I'm not looking for anyone to write the code for me... just general advice on what APIs to use and how to tackle this logically:
- Machine can have up to three network connections (wired ethernet, wireless wi-fi, and USB).
- We need to change network settings of the WIRED (cat5) connection, but we don't necessarily know which connection it is (is there a way, in code, to find a specific network connection type?)
- Release DHCP, assign a static IP to that same wired connection. Once again, we do not necessarily know which connection is wired (eth0, eth1, etc etc)
- Code needs to be portable between machines (i.e. we can't hardwire MAC addresses or anything)
Thanks in advance for your help!!!
************
RudeJohn
************
- Machine can have up to three network connections (wired ethernet, wireless wi-fi, and USB).
- We need to change network settings of the WIRED (cat5) connection, but we don't necessarily know which connection it is (is there a way, in code, to find a specific network connection type?)
- Release DHCP, assign a static IP to that same wired connection. Once again, we do not necessarily know which connection is wired (eth0, eth1, etc etc)
- Code needs to be portable between machines (i.e. we can't hardwire MAC addresses or anything)
Thanks in advance for your help!!!
************
RudeJohn
************