Android Question [B4X] xHttpServer svr.Stop does not completely stop in B4a

MrKim

Well-Known Member
Licensed User
Longtime User
@Star-Dust Thank you for this it is just what I need for one of my personal projects.
The only issue I thought I would mention is on android .stop stops the server but I think is not releasing.
I have to completely close the program in order to start it again.
Not a big deal for me but just thought I would mention it.
Issue was found on a Samsung Galaxy Tab Lite tablet.
the error is:
B4X:
(Exception) java.lang.Exception:  java.net.BindException: bind failed: EADDRINUSE (Address already in use)
Thanks for your good work!
 

Star-Dust

Expert
Licensed User
Longtime User
Download the library again, it should now close permanently
 
Upvote 0

MrKim

Well-Known Member
Licensed User
Longtime User
@Star-Dust Thank you for this it is just what I need for one of my personal projects.
The only issue I thought I would mention is on android .stop stops the server but I think is not releasing.
I have to completely close the program in order to start it again.
Not a big deal for me but just thought I would mention it.
Issue was found on a Samsung Galaxy Tab Lite tablet.
the error is:
B4X:
(Exception) java.lang.Exception:  java.net.BindException: bind failed: EADDRINUSE (Address already in use)
Thanks for your good work!
That did the trick for B4A! However I was mistaken about it just being android. In B4J there is a similar issue.
HttpServer.Stop does not stop the server. I did not notice it because there is no error when you restart the server but it continues running in the background.
 
Upvote 0
Top