Backendless Support
 
Not a Problem

Code Runner Properties Allowed Host not allowed

Hi guys,

I have a problem with runner.properties allowedHosts. I set them to allow api.twilio.com, but the app still give me error "access denied java.net.SocketPermission api.twilio.com resolve". I have added api.twilio.com in the External Host, but still get this error message. Any ideas?

Thanks, Victor.

  1. enterprise.allowedHosts = api.backendless.com,\

    api.twilio.com,\

    api.twilio.com:443,\

    localhost,\

Leave a Comment

Comments (7)

photo
1

Hi Victor,

Could you please describe your use case? Do you use Online or Enterprise version?

Regards,

Denys

photo
1

Hi Denys,

I think it's using Enterprise (standalone) now.

Cheers,

Victor.

photo
1

Try to add external host as described here:

https://backendless.com/documentation/manage/mgmt_external_hosts.htm

photo
photo
1

I did already, as shown in screenshot.

The problem still the same.

Files: ext.png
photo
2

Internal ticked has been created for this issue.

Regards,

Denys

photo
1

Thanks for your help, Denys.

photo
photo
1

Hi Victor.

First of all, we don't provide free support for standalone version.

About your problem:

For standalone version you need set up cached DNS, to get the same dns-answer on the same dns-request. Because inner cache refreshed every 3 minutes, you may get inconsistence behavior during this time period if the host's ip changed.

In future we'll remove this restriction for standalone version.

p.s. It is no need to set port in runner.properties file - just hostname.