In cases, where we want to connect to VM running servers from HOST OS, we need to disable the iptable firewall permission in Linux.
Use following command to disable firewall in Linux. In root access, execute the command.
IPV4 firewall
/etc/init.d/iptables stop
IPV6 firewall
/etc/init.d/ip6tables stop
NOTE :- In VM player set network adapter to host-only mode to create private network with host and VM OS.