I am not fully sure about your issue because some code that might be important is missing.
I think you can use Dns.GetHostName Method .
Refer to:http://stackoverflow.com/questions/3494924/how-can-i-get-the-current-local-host-name-using-c-sharp-or-vb-net
No comments:
Post a Comment