It is very simple.You can get the Server name as follows
public string serverName = System.Windows.Forms.SystemInformation.ComputerName.ToLower();
Inorder make the serverUrl, you can follow as
public string serverUrl = "http://" + System.Windows.Forms.SystemInformation.ComputerName.ToLower();
Hope this will help
Cheers
Pradeepa Achar
Comments