I'm just asking because the obvious solution would be
but this doesn't work. After the second ServerSocket1.Listen, the socket cannot be connected to.
B4X:
ServerSocket1.Initialize(ServerPort,"ServerSocket1")
ServerSocket1.Listen
.
.
.
ServerSocket1.Close
.
. 'do some other stuff
.
ServerSocket1.Initialize(ServerPort,"ServerSocket1") 'is this line necessary here? Anyway, doesn't work either
ServerSocket1.Listen