-
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
Refuse connection and timeout #646
Comments
I was facing similar problems where connection disconnects and large file upload fails. Try running the server in foregorund service. Looks like this library is no more maintained so I tried to make my own http server library. https://github.com/tejmagar/tinyweb |
This problem is very strange, I know there is a fix in the unreleased commit, but even with this, I still encounter the connection timeout problem, and I find that I can't get a response when using ping, and it returns to normal after rebooting, are there any restrictions on Android? removed remoteHostName from HTTPSession: it can take too long time to figure out via DNS |
@t104360088 you need to add network permission at 【AndroidManifest.xml】, as follow :
|
Hi, I have an Android application, running nanohttpd on it to provide web pages to the browser under LAN, but I encountered a very strange problem.
Sometimes the browser will show the connection refuse or the connection times out, but at this time I use another PC to request the web page from server and get a normal response. After a while, the PC that was originally unable to connect can get the web page again. Does anyone have any ideas about this problem?
The text was updated successfully, but these errors were encountered: