-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Caused by: java.net.BindException: Cannot assign requested address #551
Comments
Your phone is firewalled and doesn't have a public IP. |
Hey @stefan-reich |
I don't think you can, not directly. You can use services like ngrok.io to serve web pages from your phone. |
You can't do it directly. You would have to have a separate server in between to proxy the traffic to your phone. |
Oh wait, I think ngrok has no app. http://serveo.net/ seems to have an Android app. Here's some docs for that. |
@stefan-reich @NoahAndrews |
I'll contact you |
hey everyone
i want to create remove server on my phone to can access it
from anywhere
so
when i try local host everything work well
but when try to connect to my public ip
this error happened
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1453) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1565) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1453) Caused by: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:368) at java.net.ServerSocket.bind(ServerSocket.java:377) at java.net.ServerSocket.bind(ServerSocket.java:331) at fi.iki.elonen.NanoHTTPD$ServerRunnable.run(NanoHTTPD.java:1761) at java.lang.Thread.run(Thread.java:762)
and that is my Server Class
and that is Main Activity
The text was updated successfully, but these errors were encountered: