Getting BindException: Permission denied

Solution Unverified - Updated -

Issue

  • I am trying to proxy a request using httpClient package. However I am seeing the following:
Exception:
java.net.BindException: Permission denied
    java.net.PlainSocketImpl.socketBind(Native Method)
    java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
    java.net.Socket.bind(Socket.java:631)
    java.net.Socket.<init>(Socket.java:423)
    java.net.Socket.<init>(Socket.java:280)
  • The only opened port from external are 80 , 443 , 8080, 8000 8443 and are all occupied . Then the application cannot start using these ports (cannot bind port). Any solution to open an external access to this service with any port on Openshift?

Environment

  • Openshift Online
  • OpenShift Enterprise

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content