Friday, May 1, 2015

asp.net get the host name of local machine

 public static string GetHostName()
        {
            string hostName = "";
            // Getting Ip address of local machine...
            // First get the host name of local machine.
            hostName = Dns.GetHostName ();
           
            return hostName;
        }

No comments:

Post a Comment