Connecting to a Virtual Box Ubuntu DataStax Cassandra DSE using C# Driver - datastax-enterprise

I am trying to connect using Datastax C# client driver on a Windows 7 box to DSE Cassandra running on a virtual box (Ubuntu).
Here is my code:
Cluster _cluster = Cluster.Builder()
.WithPort(9042)
.AddContactPoint("192.168.1.136")
.Build();
I am getting this error : All host tried for query are in error (tried: 192.168.1.136)
I think the problem is that the remote machine (in this case a virtual box) is not accepting the connection.
Has any one connected from c# driver on Windows 7 to a remote Ubuntu running on virtual box ?

Finally figured it out. Set rpc_address: 192.168.1.136 on cassandra.yaml and it works now.

Related

Rails application can't reach remote PostgreSQL server (proxy, VirtualBox)

I have a Windows 7 PC with Forefront TMG proxy. There is a VirtualBox virtual machine installed with Ubuntu 16.04 (64-bit) guest OS. I'm not a seasoned Unix-user, so I tried to configure Ubuntu's network through GUI window.
After several tries I wound up with these settings:
https://i.stack.imgur.com/in4yR.jpg
All works fine now. I can use browser and git and do various network stuff. But!
I have a Rails application, which uses a remote PostgreSQL database. When I start my Rails server, it throws this exception:
Puma caught this error: could not connect to server: Network is unreachable
Is the server running on host "this_is_the_host_url" and accepting
TCP/IP connections on port 5432?
(PG:ConnectionBad)
This applications works fine on the other PC with similar Windows 7 and VB Ubuntu, but without a proxy. Also I tried to reach the remote DB-server from my host Win7 with PGAdmin - all works fine, even with proxy. The issue is somewhere between my Ubuntu guest OS and my Windows host OS.
Should I configure proxy settings in Ubuntu in a different way?
Any other way to resolve this issue?
Traceroute shows this:
1 10.0.2.2 (10.0.2.2) 0.638 ms 0.577 ms 0.549 ms
2 10.0.2.2 (10.0.2.2) 29.369 ms !N 53.000 ms !N 75.644 !N
As I can get it, 10.0.2.2 is my host OS ip.
I searched through the web, but all I could get belongs to the opposite side: to reach to the proxied VB Ubuntu, not from it.

Crate.io: Can't connect remotely

I've installed a Crate DB on a Virtual Machine Ubuntu (xenial).
Since I want to connect to it from both my VM and my Windows host, I've tried to set the VM's IP on both params in crate.yml:
network.host
network.publish_host
The rest of the parameters I can see in crate.yml
But that won't do the trick (I get ERR_CONNECTION_TIMED_OUT error when I try to connect to "my_VMs_ip:4200" from my Windows host PC) and I can't find any way around it on crate.io nor on Google.
Would any of you have an idea?
Thanks a lot
NB: I'm running Crate 2.0.7

Connecting to Firebird 3

I have installed Firebird 3.0.1 on a PC and on a VM client. I installed Flamerobin on both to test the connection.
I can connect to localhost on both PC and VM using Flamerobin, so I assume the Firebird server is running on both and Flamerobin is installed on both OK
I can connect to the Firebird server on the VM from the PC and open a database Ok
From the VM I can open a database on the PC, but when I try to retrieve the server version on the PC I get an error ISC_Service_attach failed (Unable to complete network request to host).
I have no idea what the problem is given that I can open a database ok, but cannot access any of the utility services.
I am using fbclient.dll 3.0.1.32591 on both VM and PC
If you can achieve network request to server, you need to check firewall setings on server and set fb default port as inbound acceptable. If you would had same problem after that, than you probably need proper fbclient library, for FB3 on client, VM. Hope this helps.

VM has no Internet access

I am using Windows 8.1 in my laptop and I have created a Windows Server 2012 R2 Virtual Machine using Hyper-V.
I have tried to give the VM Internet access. I followed this thread, but my VM still has no Internet access.
I can see the Wi-Fi is bridged and the VM got an IP-address, and both my laptop and VM has same default gateway.
This doesn't sound like an issue with the HyperV setup. But instead just sounds like you aren't aware of the Enhanced Security Configuration placed on Internet Explorer by default in a server OS.
Check this out the following blog post on how to remove them.
https://blogs.technet.microsoft.com/chenley/2011/03/10/how-to-turn-off-internet-explorer-enhanced-security-configuration/

Accessing rails sever on a virtual machine from host machine

I've got Ubuntu (the newest version) running as a virtual machine on Windows 7 Pro, using VMware.
My question is, can I make the rails sever acessible to windows while the virtual machine is running?
So, for example, if I type on my Windows browser http://localhost:3000 I would get the rails sever?
Also, can I make it acessible to computers from the outside, so if someone would type
myipaddress:3000 he would be able to acess the sever as a client?
I hope this is clear.
There are a lot of "ifs" here, but it should "just work".
In Linux, find the IP address of your virtual machine.
$ /sbin/ifconfig
You're looking for a section that is probably labelled "eth0" and in that "inet addr".
Using that address with port 3000 from your Windows host should work fine. If not, post the specific problem that you're seeing, including any logs you can find or info on any firewalls you have running on your Linux client.

Resources