title: Unable to run application on Docker if used any other port except default port 80
body: <p>I have a demo app which is hosted on docker. The exposed port for Docker is 80 and the app is running fine on local machine and I am able to see landing page for my app on localhost:8888.</p>
  
  <p>Docker file is as given below</p>
  
  <pre><code>FROM microsoft/aspnetcore:2.0
  COPY dist /app
  WORKDIR /app
  EXPOSE 80/tcp
  ENTRYPOINT ["dotnet", "demoapp.dll"]
  </code></pre>
  
  <p>Whenever I change line "EXPOSE 80/tcp"  to  for ex- "EXPOSE 8080/tcp" , "EXPOSE 5000/tcp" etc to expose any other port except 80 of Docker container as given in many online available sample codes, I am unable to run my app on browser. Any port except 80 is not working.</p>
  
  <p>I am able to create image and create container for application too. Everything goes well but when I try to run app on browser (localhost:8080/5000/9000 etc.) The app landing page doesn't load.</p>
  
  <p>Any suggestions? Do I need to do some port related configuration or contact my network team? or any code which I am missing here?</p>