This is a great way to do compatibility testing. I've done this many times.
In this case, the problem can be in two points:
Network Card Configuration in VirtualBox
I advise you to leave in bridge mode, ie there is a simulation as if there were two network cards and the virtual machine joins the network as an ordinary machine, making the access configuration trivial
General network configuration
Releasing the port on the firewall may not be enough. To take the test, do a quick test by disabling the firewall completely for a few moments.
In addition, make sure your network has some proxy or firewall that may be blocking the port.
If there is a domain server, also verify that the virtual machine is configured properly.
It is also good to see if the IP of the virtual machine is conflicting with some other IP of another user on the network. Ping can be a false positive.
Test whether the system is accessible through another physical computer on the network.
Finally, there can be many problems. If none of this works, I suggest you better describe the scenario in your question, including the procedures performed and the result of each one in detail (error code, message, and print).