I need to write an app with a GUI interface that works on Windows and Mac that can be downloaded and installed by the user. My first thought is to do it in Java, but my experience with Java GUIs in school was not easy. The requirements also include that the app will discover its own ip address and all ip addresses on the network.
I have three questions:
- What is a practical and easy way to make a GUI interface for windows and Mac.
- How to run ipconfig to get the IP on the local machine from your recomended programming language.
- How to ‘discover’ all IPs on the local network.
1) you can use Java Swing. I suggest using Eclipse.
2)
it will print the IP address i.e. 169.254.10.19
3) you should perform a sort of ping scan on your network. try to open a connection on port 7 for each ip address, if it returns false, you can skip the IP, otherwise you found one.