hi,
i want a idea how to find a host ip address in a network.

u have to only provide what ip you want to connect to and the port number also

You can use: System.getProperty(?) method
you can see the arg of this method
eg: to get the host username:
System.getProperty(os.user)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.