Yorkville High School Computer Science Department
Yorkville High School Computer Science Department on Facebook  Yorkville High School Computer Science Department Twitter Feed  Yorkville High School Computer Science Department on Instagram

Yorkville High School Computer Science

ASSIGNMENTS: No Current Assignments

Network Programming :: Projects :: Internet Addresses

Rubric
Lesson
Due: Feb 12

Problem

Write a Java program that has the following features:

  1. The ability to list ALL network interfaces on the local host with their IP address and name.
  2. The ability to enter a web address and have the contents of that web address saved to an html file.
  3. 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.

Yorkville High School Computer Science Department on Facebook Yorkville High School Computer Science Department Twitter Feed Yorkville High School Computer Science Department on Instagram