Question
IT-162 Java 2 Homework: Network Programming Apply your knowledge of using network programming in Java. Submit the project.zip via Blackboard. Create a program that uses
IT-162 Java 2
Homework: Network Programming
Apply your knowledge of using network programming in Java. Submit the project.zip via Blackboard.
Create a program that uses network programming.
Create Java project Week07NetworkProgramming.
Create GetNetworkNames.java to demonstrate how to use InetAddress. (20 points)
Get the local host name, display it on the screen
Using www.cincinnatistate.edu change the host name to its specific IP address (hint: InetAddress.getByName() method)
List all addresses of www.google.com
Find the IP address of your favorite domain and display it on the screen.
Create MyClient.java and MyServer.java to demonstrate how to use sockets to display a message to a single client. Use port# 5555. (10 points)
Create GetNetworkWebPage.java that reads and downloads a webpage. This program must receive two parameters URL and output file. If this is not passed in, print an error message Syntax error with url and filename. Be sure to handle MalformedURLException with The specified URL is malformed + url input message. And, handle any IOExceptions with An I/O error occurred: + error message. Refer to the optional exercise DownloadCStateHTML example. (20 points)
Be sure the program checks for other error processing as necessary. (10 points)
The program must follow proper naming conventions of this course. (10 points)
Test the program and provide a print-screen of the test results. (10 points)
Be sure to have the proper program documentation/comments. All methods must have the proper JavaDoc comments. (10 points)
Generate a JavaDoc for your Project. You do this by selecting your project folder, select Project, Generate JavaDoc. You can refresh your project to see the doc folder that contains your index.html. Select Open With, Web Browser, navigate to annotations and provide a print-screen with your submission. (10 points)
Refer to the practice exercise for tips on how to create this application.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started