Search code examples
androidibm-mobilefirstmobilefirst-adapters

connection refused error while accessing adapter from app


I have an adapter on my worklight server which is publicly hosted and my adapter is using some external ip 164.100.XXX.XX:9090 , now when i am trying to access that adapter from my mobile phone i am getting following error in logs

11-19 03:47:01.499: E/NONE(2363): Procedure invocation error. Runtime: Http request failed: org.apache.http.conn.HttpHostConnectException: Connect to 164.100.XXX.XX:9090 [/164.100.XXX.XX] failed: Connection refused: connect

what do i need to configure on worklight server to unlock ip and port


Solution

  • You do not configure anything in the MobileFirst Server for this.

    If an IP address is not available, that means it is not really the correct IP address to use... you need to double-check the IP address and its port. You need to verify that's really an external, public, IP address. 164.0.0... does not seem external at all.