Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to get the hostname or IP address of the server?

Answer Posted / soumya

Dim myHost As String = System.Net.Dns.GetHostName
Dim myIPs As System.Net.IPHostEntry =
System.Net.Dns.GetHostByName(myHost)
MessageBox.Show("The name of the host is = " &
myIPs.HostName, "Host Name", MessageBoxButtons.OK,
MessageBoxIcon.Information)

For Each myIP As System.Net.IPAddress In myIPs.AddressList

MessageBox.Show("The IP address of host is = " &
myIP.ToString, "Host IP Address", MessageBoxButtons.OK,
MessageBoxIcon.Information)

Next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is typical about a windows process in regards to memory allocation in .net?

1086


Explain the use of activex control in .net?

1109


What is the difference between response.redirect & server.transfer?

1221


what is machine key error in .NET how can we solve it?

2650


Different between .net & j2ee ?

1188


Explain what is immutability, what is it for and how is it codified?

1167


What is static constructor, when it will be fired?

1101


What are Satellite Assemblies? How you will create this? How will you get the different language strings?

2084


What are the challenging issues you have faced in implementation project/Maintainance project in .net Functionality? How you have overcome that issue?

5167


Does .net supports destructors concept?

2114


Explain why do we use the “using” statement?

1104


What do you mean by Code Access Security in .NET?

1254


What is Event Bubbling in .NET?

1172


How will you make .NET programs work in Linux ?

2065


What class does icon derive from? Isn't it just a bitmap with a wrapper name around it?

1133