File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Java Networking Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Networking Question" Watch "Java Networking Question" New topic

Java Networking Question

Paul Smith

Joined: Jan 27, 2005
Posts: 8
Hello People,

I want to write 2 programs:

1. That prints out the IP address of a host at the command line.

2. That prints out the host name corresponding to a given IP address.

Can anyone guide me as to how I proceed - were to start/look etc ??

Thanks a MILLION
Matt Fielder
Ranch Hand

Joined: Oct 27, 2004
Posts: 158
before you get any answers, I'm sure someone is going to tell you to change your username.
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

Pls Change your screen name to something thats close to ur real name.
Then you could go and have a look at Java Netwroking Tutorial

I agree. Here's the link:
subject: Java Networking Question
It's not a secret anymore!