[Mono-bugs] [Bug 347770] New: Socket.Connect using IP address fails on OS X
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Dec 11 15:02:54 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=347770
Summary: Socket.Connect using IP address fails on OS X
Product: Mono: Class Libraries
Version: 1.2.6
Platform: PowerPC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at ximian.com
ReportedBy: sandy.dunlop at gmail.com
QAContact: mono-bugs at ximian.com
Found By: Other
Socket.Connect fails on Mac OS X on PowerPC hardware when an IP address is
used, although it works correctly when a hostname is used.
The stack trace looks like this:
Unhandled Exception: System.Net.Sockets.SocketException: No such host is known
at System.Net.Dns.GetHostByAddressFromString (System.String address, Boolean
parse) [0x00000]
at System.Net.Dns.GetHostEntry (System.Net.IPAddress address) [0x00000]
at System.Net.Dns.GetHostEntry (System.String hostNameOrAddress) [0x00000]
at System.Net.Sockets.Socket.Connect (System.String host, Int32 port)
[0x00000]
at NS.TestTcpClient.Main (System.String[] args) [0x00000]
The following code can be used to reproduce this:
static void Main(string[] args)
{
Socket socket = new Socket(
AddressFamily.InterNetwork,
SocketType.Stream,
ProtocolType.Tcp);
socket.Connect("127.0.0.1", 80);
}
--
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