REST ExternalAPI

How to reference External API to point to localhost


I have my variables as external API pointing to http://localhost:xxxx/rest_command
When I access the bonita application pages directly from this server I get the data right, since the service xxxx is running in this server.
When I do it from a browser in other pc, it retrieves nothing.