java.net.SocketException: socket failed: EPERM (Operation not permitted)

后端 未结 8 1181
轮回少年
轮回少年 2020-11-28 05:22

I am working on an Android Studio project with several activities. I am currently trying to read the output from a Java Servlet on localhost but it seems to be crashing due

相关标签:
8条回答
  • 2020-11-28 06:24

    just uninstall the app from the emulator then run again and it’ll work i had the same issue

    to unistall the app run your project when "the application had stopped" message appear click "app info" then unistall

    0 讨论(0)
  • 2020-11-28 06:26

    If anyone still has this issue I encountered it when I used VPN and tried to connect to wifi while cellular was on. I was using Anyconnect VPN client. Solution is to enable the allow bypass that will let you bind a socket to a specific network if this is what you are looking for.

    AnyConnect only uses allowBypass if it's configured in its managed restrictions (by EMM), via this key: vpn_connection_allow_bypass.

    0 讨论(0)
提交回复
热议问题