Solved

Visual Studio 2010, TcpListener.Start, get The requested address is not valid in its context

Posted on 2010-11-16
2
1,217 Views
Last Modified: 2012-05-10
This works on Visual Studio 2008 but not after I converted the project to 2010:

        Try
            tcpListener = New TcpListener(Dns.GetHostEntry(SysName).AddressList(0), SvrPortNum)
            tcpListener.Start()
        Catch ex As Exception
           ' ex.Message = "The requested address is not valid in its context"
        End Try

The  statement
          tcpListener = New TcpListener(SvrPortNum)
works. I could use it as a workaround, but dont want to.

Is there something new with VS 2010, or a bug or something? I would really like to be able to specify the address to listen on if possible.

Thanks
0
Comment
Question by:MikeBroderick
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Author Comment

by:MikeBroderick
ID: 34146676
Also, the machine is Windows 7, 64 bit.
0
 

Accepted Solution

by:
MikeBroderick earned 0 total points
ID: 34148883
Oops. It works fine. It was something I was doing. Sorry.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question