By default all VMs have firewall enabled. Which mean you have to add ports on VM's firewall get access.
Here's how you can add a port inside the Firewall.
1. Click on Firewall tab iside the network section.
2. Click on "Add new rule"
3. Select "TCP" as protocol and Enter the port on "Destination port"
3. Click Submit