Cannot connect to port listening on Ubuntu 10.10
Posted: 5. Jan 2011, 15:59
I have Windows 7 64-bit as the host OS and Ubuntu 10.10 as the guest OS using Oracle Virtualbox v4.0 with Bridged network adaptor (Have tried all adapters) with which I can ping to the guest from host and vice-versa. I have configured samba so the virtual pc 'ubuntu' is on the same workgroup.
I have an xmlrpc server process on the guest OS that i run on the terminal which listens on a certain port and created an xmlrpc client with the URL to http://ubuntu:8080/rpc2 which when i run on the Windows machine i get an exception 'the remote server cannot be reached'
When i use the ip address i get the following exception:
{System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.HttpWebRequest.MakeMemoryStream(Stream stream)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at CookComputing.XmlRpc.XmlRpcClientProtocol.GetWebResponse(WebRequest request)
at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj, MethodInfo mi, Object[] parameters)
at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(MethodInfo mi, Object[] Parameters)
at XmlRpcProxyaae9c7fd-2897-493c-bc91-6818dd637465.translate(parameter p)
at WpfApplication1.MainWindow.MenuItem_Click1(Object sender, RoutedEventArgs e) in C:\WpfApplication1\WpfApplication1\MainWindow.xaml.cs:line 202}
netstat gives me 0.0.0.0/8080 Listening
Does ubuntu by default have a firewall that blocks all ports by default ? I have tried other ports without any luck.
I basically want client-server communication irrespective of where the client app is running: internal/external. The server is Abyss which handles xmlrpc. I can configure Apace to handle xmlrpc as well.
I have a hostname that i have setup, enabled port forwarding, set up the firewall. Shouldn't NAT on the router bind the
hostname vineetk.no-ip.biz to the ip address of the server pc ? Strangely, i can access the website hosted on the same machine when i log onto vineetk.no-ip.biz.
From my understanding it appears to be a network issue on the server side.
How do i map the hostname to my virtualbox pc for outside access ?
Regards,
Vineet
I have an xmlrpc server process on the guest OS that i run on the terminal which listens on a certain port and created an xmlrpc client with the URL to http://ubuntu:8080/rpc2 which when i run on the Windows machine i get an exception 'the remote server cannot be reached'
When i use the ip address i get the following exception:
{System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.HttpWebRequest.MakeMemoryStream(Stream stream)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at CookComputing.XmlRpc.XmlRpcClientProtocol.GetWebResponse(WebRequest request)
at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj, MethodInfo mi, Object[] parameters)
at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(MethodInfo mi, Object[] Parameters)
at XmlRpcProxyaae9c7fd-2897-493c-bc91-6818dd637465.translate(parameter p)
at WpfApplication1.MainWindow.MenuItem_Click1(Object sender, RoutedEventArgs e) in C:\WpfApplication1\WpfApplication1\MainWindow.xaml.cs:line 202}
netstat gives me 0.0.0.0/8080 Listening
Does ubuntu by default have a firewall that blocks all ports by default ? I have tried other ports without any luck.
I basically want client-server communication irrespective of where the client app is running: internal/external. The server is Abyss which handles xmlrpc. I can configure Apace to handle xmlrpc as well.
I have a hostname that i have setup, enabled port forwarding, set up the firewall. Shouldn't NAT on the router bind the
hostname vineetk.no-ip.biz to the ip address of the server pc ? Strangely, i can access the website hosted on the same machine when i log onto vineetk.no-ip.biz.
From my understanding it appears to be a network issue on the server side.
How do i map the hostname to my virtualbox pc for outside access ?
Regards,
Vineet