title: Jenkins-Docker: Connection reset while connecting over VPN
body: <p>I am running Jenkins via Docker on a RHEL server with this command:</p>
  
  <pre><code>docker run -p 8080:8080 -p 50000:50000 -d --name jenkins-master -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts
  </code></pre>
  
  <p>My problem is that if I RDP to a machine on the network, I am able to access the site at port 8080 of the host machine. If I try to access the site from my machine through VPN I get: </p>
  
  <p><em>This site can’t be reached The connection was reset.</em></p>
  
  <p>The difficult part for me is that running Django/Angular apps in Docker on the same server work fine; I am able to access those sites with no issue. iptables shows it is listening:</p>
  
  <pre><code>tcp        0      0 &lt;ip&gt;:8080      0.0.0.0:*               LISTEN 
  </code></pre>
  
  <p>curl gives me the same error:</p>
  
  <pre><code>curl: (56) Recv failure: Connection reset by peer
  </code></pre>
  
  <p>I've tried every combination of network/port mapping, but I don't understand why this particular application is resetting the connection, but my Django/Angular apps, which are configured identically, are working both through VPN and RDP to network machine.</p>