Page 1 of 1
Access to rails server from host machine
Posted: 29. Jan 2017, 22:26
by viktor___
Hi, guys.
I know that next issue is common, but still need your help and advice.
I deployed an ubuntu virtual machine on VirtualBox and installed there ruby and rails. Starting rails server, but can't access it via browser on my host machine. Tried NAT and bridged network adapters on virtual machine, but still no success. By the way virtual machine is pinged and accessible via ssh.
Could you help me to solve this problem? Probably i have missed something small , but important at the same time.
Thank you in advance
Re: Access to rails server from host machine
Posted: 29. Jan 2017, 23:06
by socratis
viktor___ wrote:can't access it via browser
viktor___ wrote:virtual machine is pinged and accessible via ssh.
That means that there is a problem with the web server's configuration, not with connectivity. Or a firewall?
Re: Access to rails server from host machine
Posted: 29. Jan 2017, 23:34
by viktor___
I turned off firewall for a while on the host machine, but it didn't help. Will search more about server's configuration
And thanks for the reply
Re: Access to rails server from host machine
Posted: 30. Jan 2017, 00:38
by socratis
Not on the firewall on the host, on the guest.
Re: Access to rails server from host machine
Posted: 30. Jan 2017, 01:24
by BillG
It would help if you told us how you are trying to access the server (by name? by IP? If by IP what IP?) and any error message you receive if/when it fails.
Re: Access to rails server from host machine
Posted: 30. Jan 2017, 22:05
by viktor___
BillG wrote:It would help if you told us how you are trying to access the server (by name? by IP? If by IP what IP?) and any error message you receive if/when it fails.
my local machine has IP 192.168.0.103
virtual machine - 192.168.0.104
i'm trying to get access to rails server by IP using port 3000 i.e 192.168.0.104:3000
Firefox can't establish a connection to the server 192.168.0.104:3000
Re: Access to rails server from host machine
Posted: 30. Jan 2017, 22:06
by viktor___
socratis wrote:Not on the firewall on the host, on the guest.
just checked, firewall inactive on the VM
Re: Access to rails server from host machine
Posted: 30. Jan 2017, 23:17
by socratis
I stand by my previous remark:
socratis wrote:That means that there is a problem with the web server's configuration
Check the configuration allows only 127.0.0.1