title: How to put GlassFish online?
body: <p>I'm trying make GlassFish accessible online, but didn't had any success with it. I disabled Windows firewall, just to be sure it doesn't bother anything. I've set up <code>&lt;network-listeners&gt;</code> in <code>domain.xml</code> the following way:</p>
  
  <pre><code>&lt;network-listeners&gt;
      &lt;network-listener port="8080" protocol="http-listener-1" address="-IPcomeshere" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool"&gt;&lt;/network-listener&gt;
      &lt;network-listener port="8181" protocol="http-listener-2" address="-IPcomeshere" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool"&gt;&lt;/network-listener&gt;
      &lt;network-listener port="4848" protocol="admin-listener" address="-IPcomeshere" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool"&gt;&lt;/network-listener&gt;
  &lt;/network-listeners&gt;
  </code></pre>
  
  <p>I've tried the above with a bunch of ports, but no success. I have a D-link DIR-655 router, I set up the virtual servers list this way:</p>
  
  <p><img src="https://i.stack.imgur.com/Snn5t.png" alt="Virtual Servers List"></p>
  
  <p>With this configuration I get the following exception:</p>
  
  <blockquote>
    <p>java.net.BindException: No free port within range: 8181=com.sun.enterprise.v3.services.impl.monitor.MonitorableSSLSelectorHandler@334e9cde
    SEVERE: Shutting down v3 due to startup exception : No free port within range: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@29bb22a0</p>
  </blockquote>
  
  <p>What am I doing wrong? Any help will be appreciated!</p>