Colton Idle
04/27/2024, 11:18 PME FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: com.test.myapp, PID: 31900
java.net.ConnectException: Permission denied
Yes my android app has internet permission. If I remove the internet permission i get a diff error (java.net.SocketException: Operation not permitted
)
Am I missing something? 2 lines of ktor code in threadColton Idle
04/27/2024, 11:18 PMval selectorManager = SelectorManager(<http://Dispatchers.IO|Dispatchers.IO>)
val socket = aSocket(selectorManager).udp().connect(InetSocketAddress("255.255.255.255", 1000))
Chris Fillmore
04/27/2024, 11:24 PMChris Fillmore
04/27/2024, 11:24 PMColton Idle
04/27/2024, 11:27 PMColton Idle
04/27/2024, 11:27 PMephemient
04/28/2024, 1:12 AMColton Idle
04/28/2024, 2:06 AMCasey Brooks
04/28/2024, 3:09 AMephemient
04/28/2024, 10:40 AMColton Idle
04/28/2024, 6:24 PMColton Idle
04/28/2024, 6:25 PMephemient
04/28/2024, 6:31 PM.udp().bind { broadcast = true }.send(..., InetSocketAddress(...))
and not connect
, at a minimum. not sure if other changes would be required tooephemient
04/28/2024, 6:32 PMephemient
04/28/2024, 6:37 PMColton Idle
04/29/2024, 12:00 PM.udp().bind { broadcast = true }
that looks promising... I'll give that a shot!Colton Idle
04/29/2024, 12:01 PM