Need help with runtime error

  • Thread starter Thread starter peak
  • Start date Start date
P

peak

What's wrong with this:

Dim myip() As Byte = {127, 0, 0, 1}
Dim ip As New System.Net.IPAddress(myip, portNum)

I am getting a runtime exception with additional information "address" ?
 
Post the specific errror, word for word. It is often easier when there is a
specific error to track on.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside the box!
*************************************************
 
What's wrong with this:

Dim myip() As Byte = {127, 0, 0, 1}
Dim ip As New System.Net.IPAddress(myip, portNum)

I am getting a runtime exception with additional information "address" ?

Dim ip As IpAddress = IPAddress.Parse ("127.0.0.1")

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top