Android WWW ConnectException

Hello,
I am trying to make request to my server and to get response by using WWW class.
Url looks like “http://123.123.123.123:3000/api_call?parameters=values”.
I can get response by passing this url in google chrome on my android device. But WWW request returns timeout exception.
There is manifest with INTERNET permission and Unity’s Ping works fine. But WWW request don’t work.
Any ideas?

This is www.error message
I/Unity(6530): api_call_error: java.net.ConnectException: failed to connect to /123.123.123.123 (port 3000): connect failed: ETIMEDOUT (Connection timed out)

In editor it works fine

does WWW work only with URLs (not with IPs) ?

1 Like