<p>Download the file <a href="https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello-pod.json" rel="nofollow noreferrer">https://github.com/openshift/origin/blob/master/examples/hello-openshift/hello-pod.json</a> and execute the following commands:</p>

<pre><code>oc cluster up
oc create -f hello-pod.json
oc get pod hello-openshift -o yaml |grep podIP
</code></pre>

<p>it will return the IP address, let say:</p>

<pre><code>podIP: 172.17.0.6
</code></pre>

<p>Execute the command: </p>

<pre><code>curl 172.17.0.6:8080
</code></pre>

<p>It will return <strong>curl: (7) Failed to connect to 172.17.0.6 port 8080: Operation timed out</strong></p>

<p>Info:</p>

<pre><code>oc v3.10.0+dd10d17
kubernetes v1.10.0+b81c8f8
features: Basic-Auth

Server https://127.0.0.1:8443
openshift v3.10.0+e3465d0-44
kubernetes v1.10.0+b81c8f8
</code></pre>

Diego
<p>Your command <code>curl 172.17.0.6:8080</code> would work from inside a pod.</p>

<p>If you want to connect from your terminal (localhost), you have these ways:</p>

<ol>
<li><p><code>oc port-forward &lt;pod_name&gt; 9999:8080</code> and in another terminal <code>curl localhost:9999</code>, <a href="https://docs.openshift.com/enterprise/3.0/dev_guide/port_forwarding.html" rel="nofollow noreferrer">here</a> the command reference</p></li>
<li><p>setup an <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">ingress</a></p></li>
</ol>

<p>The quickest way to debug is option 1.</p>
