tcplisterner doesnt accept port alone? why?

VS is telling me that that is obsolete. Apparently you're supposed to use something like:

Dim port As Integer = 9890
Dim localAddr As IPAddress = IPAddress.Parse("127.0.0.1")
Dim server As New TcpListener(localAddr, port)
 
yes

yes I know..
But,Isnt it supposed to accept port alone too?
That is what Im asking why.
I thought its a bug in vs2003..
but,then its the same error in vs2005 too...In what situation should I pass the port alone?
 
Back
Top