Solved

gethostbyname()

Posted on 1998-12-14
2
370 Views
Last Modified: 2006-11-17
JDK 1.2, NT4.0 development platform, NT4.0 target platform

I need a JAVA code fragment to perform a gethostbyname() call.

Thank you in advance.
0
Comment
Question by:august97
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
imladris earned 100 total points
ID: 1229504
Is there something insufficient with the getByName method in the InetAddress class in the net package:

public static synchronized InetAddress getByName(String host) throws UnknownHostException;

0
 

Author Comment

by:august97
ID: 1229505
Thank you!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maven module vs maven project 3 108
java example issue 5 63
Java 8 to Java 6 8 41
IBM TS2900 (3572) Tape Autoloader Java? 12 102
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.
Suggested Courses

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question