Results 1 to 2 of 2

Thread: stupid error help please

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2007
    Posts
    330

    stupid error help please

    listener = New Net.Sockets.TcpListener("127.0.0.1", 32111)


    Value of type 'String' cannot be converted to 'System.Net.IPAddress'.


  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: stupid error help please

    try this:

    vb Code:
    1. Dim ipAddr As Net.IPAddress = Net.IPAddress.Parse("127.0.0.1")
    2. listener = New Net.Sockets.TcpListener(ipAddr, 32111)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width