[Mono-list] TcpChannel Error?
Kevin Williams
zak@supernova.org
Sun, 2 Feb 2003 22:13:38 -0600
This would appear to be a network configuration issue on my Linux box,
but I have no idea how to troubleshoot it. Perhaps someone here can
help? Here is the code I'm using:
using System;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
public class Three
{
static void Main()
{
TcpChannel c = new TcpChannel(5000);
}
}
Here is the exception that occurs at runtime:
Unhandled Exception: System.Net.Sockets.SocketException: No such host
is known
in <0x000a0> 00 System.Net.Dns:GetHostByName (string)
in <0x00057> 00
System.Runtime.Remoting.Channels.Tcp.TcpServerChannel:Init
(System.Runtime.Remoting.Channels.IServerChannelSinkProvider)
in <0x00100> 00
System.Runtime.Remoting.Channels.Tcp.TcpServerChannel:.ctor
(System.Collections.IDictionary,System.Runtime.Remoting.Channels.IServer
ChannelSinkProvider)
in <0x000d7> 00 System.Runtime.Remoting.Channels.Tcp.TcpChannel:Init
(System.Collections.IDictionary,System.Runtime.Remoting.Channels.IClient
ChannelSinkProvider,System.Runtime.Remoting.Channels.IServerChannelSinkP
rovider)
in <0x00094> 00 System.Runtime.Remoting.Channels.Tcp.TcpChannel:.ctor
(int)
in <0x00031> 00 .Three:Main ()
My Linux box sits behind a Windows XP machine running Internet
Connection Sharing. I can reach anything on the outside from my Linux
box, but the outside can only reach my Linux box via SSH (Windows XP
forwards that port - and only that port - to the Linux box). The Linux
box runs Debian 3.0 (Woody). Network configuration is done via DHCP at
boot time (I haven't edited any config files). What could cause
GetHostByName to fail under my configuration?
Thanks,
-Zak