The sample web application throws an error message when launched on a mobile phone types Huawei P30 with android 10.
The error message is:
Webseite nicht verfügbar
Die Website unter http://localhost:31337/apps/com.example.myapp/index.html konnte nicht geladen, weil:
net::ERR_CONNECTION_REFUSED
Steps to reproduce
Go through the steps for Building and Running Web App in the manuals
Could you also please provide the logs from the device?
Either via adb logcat , or ax logs tail ; preferably from the start of the application until the error is observed.
thanks for your explanation! Would be very helpful to get the logs from the moment ActyxOS started until the moment the error with the app is observed. You could also just paste all logs you have with ax logs tail --all-entries --local 192.168.178.35, that would be very helpful!
thanks for the logs. Before we dive deeper, it seems that the port is already allocated on the device you’re using (and ActyxOS is not gracefully handling that case, which would be a bug!):
2021-03-13 17:42:51.478 UTC ERROR NIO java.net.BindException: Address already in use
2021-03-13 17:42:51.479 UTC ERROR NIO at sun.nio.ch.Net.bind0(Native Method)
2021-03-13 17:42:51.479 UTC ERROR NIO at sun.nio.ch.Net.bind(Net.java:442)
2021-03-13 17:42:51.480 UTC ERROR NIO at sun.nio.ch.Net.bind(Net.java:434)
2021-03-13 17:42:51.481 UTC ERROR NIO at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
2021-03-13 17:42:51.482 UTC ERROR NIO at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
2021-03-13 17:42:51.482 UTC ERROR NIO at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
2021-03-13 17:42:51.485 UTC ERROR NIO at n1.f.a.f.run(Unknown Source:35)
2021-03-13 17:42:51.490 UTC ERROR NIO at n1.f.a.d$b.run(Unknown Source:2)
2021-03-13 17:42:51.491 UTC ERROR NIO at n1.f.a.d.a(Unknown Source:46)
2021-03-13 17:42:51.495 UTC ERROR NIO at n1.f.a.d.g(Unknown Source:0)
2021-03-13 17:42:51.500 UTC ERROR NIO at n1.f.a.d.d(Unknown Source:0)
2021-03-13 17:42:51.501 UTC ERROR NIO at n1.f.a.d$a.run(:1)
Now that could either be caused by a bug in ActyxOS, or another process is running which bound to that port. Could you check the port 31337 on that device?
This could be done for example via adb shell netstat -tuln (please paste the output!).
We could not reproduce the behaviour on an Android 10 device running ActyxOS 1.1.1, unfortunately. We assume there are some device specific restrictions on your phone in place.
I’ll be in touch directly to help you debug this further on your device.