Maybe it's not a networking issue but a service issue? If you can reach ssh but not a webserver, maybe there's no webserver running on the container?
Otherwise, it's a bit strange to have a networking problem in the app layer unless you are purposely blocking certain ports with a firewall.