Jump to content

Recommended Posts

Posted

I am trying to write just a simple application with VB2008, one form, 2 buttons, the 1st button gets the hostname, the 2nd button needs to get the ip address of the machine its ran on. the first button works. heres what I got for button 2:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim ip As String
Dim resolve As Decimal
ip = (Net.Dns.GetHostName)
resolve = (Net.Dns.GetHostAddresses(ip))
MessageBox.Show(resolve)
End Sub


  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...