Does someone know how this can be done?
i want to enter a host name through a input edit box
then i want to ping the host name using a command line so that i can retrieve the ip adress of that machine.
vv.xx.yy.zz hostname in the 'hosts' file at
basically the problem is that is there some way so that
i can accept the host name from the user.
then find the ip address of that machine using say
is there any other way i can obtain the ip of the machine.
and add the entry to hosts file as above.
i have the code that writes to the hosts file .
i want some way to obtain the ip of the machine, given the host name in my application .
i know this seems tough. Can you help me with this.