title: Exposed ports from docker container cannot able to access on host server by IP Address in RedHat 8
body: <p>I am running docker container in RedHat 8. In my docker container, I exposed port 8080 for accessible from outside. I can able to telnet 8080 from other servers but I cannot able to telnet 8080 from host server by IP address.</p>
  <pre><code>[root@redhat1 biz]# cat docker-compose.yml 
  version: '3'  
  services:
    web:
      image: nginx:latest
      ports:
       - &quot;8080:80&quot;
      links:
       - php
    php:
      image: php:7-fpm
  </code></pre>
  <p><a href="https://i.stack.imgur.com/aFa0Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aFa0Z.png" alt="enter image description here" /></a></p>
  <p>Exposed port 8080 cannot accessible from the host server by using IP address. It can able to telnet 8080 by localhost or 127.0.0.1.</p>
  <p><a href="https://i.stack.imgur.com/4ETnx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4ETnx.png" alt="telnet IP_Address 8080 on host server has problem." /></a></p>
  <p>Telnet 8080 from other server by IP address is OK.</p>
  <p><a href="https://i.stack.imgur.com/nrfH7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nrfH7.png" alt="telnet IP_Address 8080 from other server is OK" /></a></p>