i know that server names can be read by $server, but is there a more "specific" way to tell them apart? i'm trying to code local channel support, and i am having a bit of trouble with this. it's not that i can't tell the different servers apart using $server, but i just am afraid that server names will change and there may be a situation where multiple servers are named the same thing.

i thought of using $serverip, but that often doesn't work without error (many times it returns 255.255.255.255 for me for some reason, not always or anything though)... and everyone knows server ip's change.

does a solution exist, or should i just keep with using $server?