Hi all,
Please help me how to get remote computer IPaddress/Hostname.I tried with
system.dns.gethostname
and
gethostentry
but all are returning only local machine addreess.
So please help me to get below info.
How to get remote computer IPaddress/Hostname by accepting either on the one as Input parametes?
I need info like the below methods
1.
GetRemoteHostAdress(string IPaddress)
{
return hostname , FullyQualified machine name
}
2.
GetRemoteIPAdress(string HostName){
return Ipaddress , Fully Qualified MAchine Name
}
I request every one to help me.
Thanks