Topic
  • 3 replies
  • Latest Post - ‏2013-08-15T15:27:03Z by TaraGolla
GustavoSousa
GustavoSousa
3 Posts

Pinned topic External access to WAS 8.5.5 Liberty on Red Hat

‏2013-07-18T12:16:33Z |

Hi all,

I've tried to access my app throught external IP and I'm getting the error:  "Unable to connect". The ping works and I've stoped the iptables service for testing and it didn't work as well.

I using Red Hat and WebSphere 8.5.5 Liberty Profile. Does anyone had this issue?

 

Regards.

  • Alasdair
    Alasdair
    55 Posts

    Re: External access to WAS 8.5.5 Liberty on Red Hat

    ‏2013-07-18T12:52:21Z  

    By default Liberty doesn't open remotely accessible ports. To override the default to allow remote you want to change the default http configuration in your server.xml to be like this:

     

        <httpEndpoint id="defaultHttpEndpoint"
                      host="*"
                      httpPort="9080"
                      httpsPort="9443" />

    If you want to listen on only one remote IP then you can list the host name, or ip address in the host attribute.

  • GustavoSousa
    GustavoSousa
    3 Posts

    Re: External access to WAS 8.5.5 Liberty on Red Hat

    ‏2013-07-18T13:31:36Z  
    • Alasdair
    • ‏2013-07-18T12:52:21Z

    By default Liberty doesn't open remotely accessible ports. To override the default to allow remote you want to change the default http configuration in your server.xml to be like this:

     

        <httpEndpoint id="defaultHttpEndpoint"
                      host="*"
                      httpPort="9080"
                      httpsPort="9443" />

    If you want to listen on only one remote IP then you can list the host name, or ip address in the host attribute.

    That worked!

    Alasdair, thank you very much!

  • TaraGolla
    TaraGolla
    1 Post

    Re: External access to WAS 8.5.5 Liberty on Red Hat

    ‏2013-08-15T15:27:03Z  
    • Alasdair
    • ‏2013-07-18T12:52:21Z

    By default Liberty doesn't open remotely accessible ports. To override the default to allow remote you want to change the default http configuration in your server.xml to be like this:

     

        <httpEndpoint id="defaultHttpEndpoint"
                      host="*"
                      httpPort="9080"
                      httpsPort="9443" />

    If you want to listen on only one remote IP then you can list the host name, or ip address in the host attribute.

    Thanks Alasdair...it worked.