I have a centos7 VM with httpd installed listening on port 80, i have also installed wordpress installed.
the output of ip a is
`[vagrant@localhost ~]$ ip a`
`1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000`
`link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00`
`inet` [`127.0.0.1/8`]) `scope host lo`
`valid_lft forever preferred_lft forever`
`inet6 ::1/128 scope host`
`valid_lft forever preferred_lft forever`
`2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000`
`link/ether 08:00:27:da:d5:90 brd ff:ff:ff:ff:ff:ff`
`inet` [`10.0.2.15/24`]) `brd` [`10.0.2.255`]) `scope global noprefixroute dynamic enp0s3`
`valid_lft 86153sec preferred_lft 86153sec`
`inet6 fe80::a00:27ff:feda:d590/64 scope link noprefixroute`
`valid_lft forever preferred_lft forever`
`3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000`
`link/ether 08:00:27:43:61:68 brd ff:ff:ff:ff:ff:ff`
`inet` [`192.168.0.60/24`]) `brd` [`192.168.0.255`]) `scope global noprefixroute dynamic enp0s8`
`valid_lft 86154sec preferred_lft 86154sec`
`inet6 fe80::a00:27ff:fe43:6168/64 scope link`
`valid_lft forever preferred_lft forever`
Service is running
\[vagrant@localhost \~\]$ systemctl status httpd
`● httpd.service – The Apache HTTP Server`
`Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)`
`Active: active (running) since Thu 2022-10-06 00:02:18 UTC; 5min ago`
`Docs: man:httpd(8)`
`man:apachectl(8)`
`Main PID: 1123 (httpd)`
`Status: “Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec”`
`CGroup: /system.slice/httpd.service`
`├─1123 /usr/sbin/httpd -DFOREGROUND`
`├─1282 /usr/sbin/httpd -DFOREGROUND`
`├─1283 /usr/sbin/httpd -DFOREGROUND`
`├─1284 /usr/sbin/httpd -DFOREGROUND`
`├─1285 /usr/sbin/httpd -DFOREGROUND`
`└─1286 /usr/sbin/httpd -DFOREGROUND`
​
when i change the setting of the VM to bridged adapter in virtual box i cant connect using vagrant.
i am unable to visit any of the ip addresses.
​
Can anyone help with this
Thanks in advance
[ad_2]