Virtualbox - unable to access GUEST(CentOs7) from Host(Win 10)

Issues related to configuring your network
Post Reply
sarathbm4it
Posts: 4
Joined: 2018/11/20 00:59:38

Virtualbox - unable to access GUEST(CentOs7) from Host(Win 10)

Post by sarathbm4it » 2018/11/20 01:11:04

Please note - I am not an expert in N/W or virtualBox :)

I am using CentOs7 and VirtualBox 5.1.38 on Windows 10.
Ping localhost on CentOs7 works fine.
Accessing internet from CentOs works fine.
But, from Host OS - when I try to access a http page (server launched in CentOs on 9200 port), I get below error.

Code: Select all

This site can’t be reached The connection was reset.
Try:

Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_RESET
I have used NAT network.

I feel I have followed the steps and verified some other web pages. But, Please advise any wiki that I can still go thru or any details I can share further.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Virtualbox - unable to access GUEST(CentOs7) from Host(Win 10)

Post by TrevorH » 2018/11/20 07:35:07

Did you open port 9200 on the guest firewall?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

owl102
Posts: 413
Joined: 2014/06/10 19:13:41

Re: Virtualbox - unable to access GUEST(CentOs7) from Host(Win 10)

Post by owl102 » 2018/11/20 09:02:28

sarathbm4it wrote:
2018/11/20 01:11:04
I have used NAT network.
Use either Bridged or Host-only network instead.
German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/

sarathbm4it
Posts: 4
Joined: 2018/11/20 00:59:38

Re: Virtualbox - unable to access GUEST(CentOs7) from Host(Win 10)

Post by sarathbm4it » 2018/11/21 03:57:49

TrevorH wrote:
2018/11/20 07:35:07
Did you open port 9200 on the guest firewall?
I didn't do that exactly, but following some of other posts, I've disabled firelwalld.service using systemcel.
And also had disabled selinux.

One more detail is - I am able to do ssh using Portforwarding on 22 to 22. Only the other port I was trying 9200 is failing.

sarathbm4it
Posts: 4
Joined: 2018/11/20 00:59:38

Re: Virtualbox - unable to access GUEST(CentOs7) from Host(Win 10)

Post by sarathbm4it » 2018/11/21 04:00:26

owl102 wrote:
2018/11/20 09:02:28
sarathbm4it wrote:
2018/11/20 01:11:04
I have used NAT network.
Use either Bridged or Host-only network instead.
Hi, I tried Bridged during trial and error but same result - 22 port works, but not 9200.

sarathbm4it
Posts: 4
Joined: 2018/11/20 00:59:38

Re: Virtualbox - unable to access GUEST(CentOs7) from Host(Win 10)

Post by sarathbm4it » 2018/11/21 07:14:43

Thank you all, it is working now.

Below is the actual issue :
The server application I was running was listening to localhost/loopback only. So it was working inside VM but not able to respond for requests from Host. Indicator was - I see Connection reset response.

There is a setting on Application that I can modify to listen to all Addresses on network interface. Once I changed it, I was able to access the Application from Host OS.

Code: Select all

netstat -ltnp
is now showing

Code: Select all

:::*
under Foreign Address column.

Post Reply