[Mono-bugs] [Bug 652181] TCP sockets code doesn't work in mono

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 10 23:23:36 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=652181

https://bugzilla.novell.com/show_bug.cgi?id=652181#c2


Gonzalo Paniagua Javier <gonzalo at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #2 from Gonzalo Paniagua Javier <gonzalo at novell.com> 2010-11-11 04:23:35 UTC ---
I added a Console.WriteLine (ipe.AddressFamily) to your program and this is the
output I get on windows 7 with Mono 2.8:
---------------------
C:\dvp>mono client.exe
InterNetwork

Unhandled Exception: System.Net.Sockets.SocketException: No connection could be
made because the target machine actively refused it.

  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000]
in <filename unknown>:0
  at ConsoleSocketClient.GetSocket.ConnectSocket (System.String server, Int32
po
rt) [0x00000] in <filename unknown>:0
  at ConsoleSocketClient.GetSocket.SocketSendReceive (System.String server,
Int3
2 port) [0x00000] in <filename unknown>:0
  at ConsoleSocketClient.GetSocket.Main (System.String[] args) [0x00000] in
<fil
ename unknown>:0
----------------------

When using .NET I get the same error, but this time the address family is IPv6:
-----------
InterNetworkV6

Unhandled Exception: System.Net.Sockets.SocketException: No connection could be
made because the target machine actively refused it
fe80::4952:c3f:78d0:4820%14:
13000
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,
SocketAddre
ss socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at ConsoleSocketClient.GetSocket.ConnectSocket(String server, Int32 port)
   at ConsoleSocketClient.GetSocket.SocketSendReceive(String server, Int32
port)

   at ConsoleSocketClient.GetSocket.Main(String[] args)
---------------

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list