Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind failed: EADDRNOTAVAIL (Cannot assign requested address) #524

Open
binrong opened this issue Dec 12, 2023 · 0 comments
Open

bind failed: EADDRNOTAVAIL (Cannot assign requested address) #524

binrong opened this issue Dec 12, 2023 · 0 comments

Comments

@binrong
Copy link

binrong commented Dec 12, 2023

java.net.BindException: bind failed: EADDRNOTAVAIL (Cannot assign requested address)
at libcore.io.IoBridge.bind(IoBridge.java:103)
at java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:157)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:427)
at java.net.ServerSocket.bind(ServerSocket.java:377)
at com.yanzhenjie.andserver.server.ProxyServer$HttpServer.startServer(ProxyServer.java:258)
at com.yanzhenjie.andserver.server.ProxyServer$1.run(ProxyServer.java:132)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by: android.system.ErrnoException: bind failed: EADDRNOTAVAIL (Cannot assign requested address)
at libcore.io.Linux.bind(Native Method)
at libcore.io.ForwardingOs.bind(ForwardingOs.java:60)
at libcore.io.IoBridge.bind(IoBridge.java:99)
... 8 more
这个报错可以在ProxyServer里面通过ServerListener的onException返回吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants