Hi Ban0955,
congraulation for your massive job.
I have tried your code, but on the row
If setsockopt(lngSocket, SOL_SOCKET, SO_REUSEADDR, optvalue, Len(optval)) Then
I get a message that variable optval is not declared.
Before I make some mess testing wrong solution, can you post the correct one?
Thank you so much