I am looking for a way to configure my Ethernet card with Java. Is there a way to change the default gateway, IP address and subnet mask in Java.
I am currently using OSHI to get the IP address, Mac address, and other hardware information. I also understand that the only way to set these parameters is with the Java.lang.Runtime Class and use the special Hardware command to set the properties from here
I am looking for a cleaner way to do this for Linux, Windows and Mac. I am basically trying to set all these properties from my own application. Is there a library or shell, such as OSHI, to execute a specific host command?
java networking ethernet static-ip-address
Rengas
source share