hey uh, this is like the first time i post something in like six months or so lol,
i remembered gdtmp having ‘dynamic’ serverlisting so i don’t really understand why you switched to a ‘add manually’ thing.
here is a quick explanation of how to do it:
iirc the three server requests are bsrvs, register and unregister.
register adds ip
unregister removes ip
bsrvs shows all listed ips. also i don’t remember how bsrvs looked like, you might need to fix that lol.
also to explain this, we need one big ‘storage’ thing, so lets use ‘string ipholder;’ for it.
anyways, for register:
-> Get requester IP
-> Check if requester IP is not already in use, if yes, remove.
-> If port is not between 1-65535 or is equal to zero, set to default port
-> Add requester ip + port to ipholder like “22.214.171.124:65535”
-> Send something back
for unregister, just follow steps 1 and 2 of register
and for bsrvs, get entire ipholder list and send it to the requester
shouldn’t be that hard, i finished the code that did it within five minutes, although it was in lua on luvit, not php.