Docker refusing to connect once i do port mapping

Am having this issue whereby once I flag the image to the localhost network it’s accessible on the browser, but once I try to flag the port the image is not accessible in the network instead it’s bringing the error the network was reset. Therefore, the image cannot be accessible even via the LAN network. Previously, I thought its something to do with the firewall but I did disable the firewall. Am using centos Os and the image is a Php App. Please assist.