Question: 2. Write a Java method that takes an IP address (String) and returns the name of the network interface that has the IP address if
2. Write a Java method that takes an IP address (String) and returns the name of the network interface that has the IP address if any.( 4 points 3. Write a Java method that takes the name of a computer, contacts the DNS and returns the IP address (as a String) of the computer. If the DNS cannot find the address the method should return null. (4 points) 2. Write a Java method that takes an IP address (String) and returns the name of the network interface that has the IP address if any.( 4 points 3. Write a Java method that takes the name of a computer, contacts the DNS and returns the IP address (as a String) of the computer. If the DNS cannot find the address the method should return null. (4 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
