Network Programming :: Projects :: Internet Addresses
Write a Java program that has the following features:
- The ability to list ALL network interfaces on the local host with their IP address and name.
- The ability to enter a web address and have the contents of that web address saved to an html file.
- The web address should be tested to make sure it can be connected to before file output is attempted.
NOTE: When using checkConnect(), you may get a security exception every time. To solve the issue add the following line of code above your instantiation of SecurityManager:
System.setProperty("java.security.policy", System.getProperty("user.dir") + "\\src\\java.policy");
In addition, move this file into your src folder. If you use a different folder, you need to change the path in the code above.