[Mono-list] TCPListener problem

Lee lee at datatrakpos.com
Wed Jun 21 11:06:44 EDT 2006

Also, I forgot to mention that if I comment out the Threading function call
in the OnStart event and place a call to a dummy method that just prints to
the log files, it works.  That appears to indicate that it is something
either with the way that it's implemented within Mono or more likely, the
way that I have implemented it.

Thanks again,


> Hello, 
> I have done what Martin suggested which was the following:
> Specifically use localhost as the local address and 
> check netstat.
> It appears that the socket does not start because it is not 
> showing up in netstat.
> As I mentioned in a prior post, I have placed logging 
> routines at various points in the code:
> OnStart event
> OnStop event
> Beginning of the StartServ() method
> When I used:
> SockServer = new TcpListener(IPAddress.Any, port);
> Both the OnStart and OnStop events were firing without the 
> socket server listing.
> When I changed to:
> IPAddress addr = IPAddress.Parse(""); SockServer = 
> new TcpListener(addr, port); ...only the OnStart event 
> appears to fire.
> Again, If I run the socket server (both in and out of VS IDE) 
> on Windows the server works fine with no problems.  Could it 
> be that there is a difference in the implementation of 
> sockets namespace in Mono has a difference that I need to account for?
> Thanks again,
> Lee
> > 
> > 
> > Hi, I have written a prototype TCPListerner service.  It 
> works fine on 
> > my local XP dev box (isn't that always the case), but not 
> on the linux 
> > box.

More information about the Mono-list mailing list