"bind" question
#1

Hey, I was wondering, what exactly is the "bind" feature you can use in server.cfg and what does it do? I've read the wiki, but I'm still really confused.

Thanks
Reply
#2

What is hard to understand?

Quote:
bind - Force the server to use a specific IP on a server. This IP must match one assigned to a network card on the server. This is useful for running multiple servers on the same port on the same box. However, there is an issue with announce where the correct IP is not sent to the master list, rather the primary IP of the server is sent.
Reply
#3

Quote:
Originally Posted by Don Correlli
What is hard to understand?

Quote:
bind - Force the server to use a specific IP on a server. This IP must match one assigned to a network card on the server. This is useful for running multiple servers on the same port on the same box. However, there is an issue with announce where the correct IP is not sent to the master list, rather the primary IP of the server is sent.
I just don't understand what its used for or how to use it.
Reply
#4

Quote:

I just don't understand what its used for or how to use it.

Say your server had two public IP addresses, 1.1.1.1 and 1.1.1.2. Bind allows you to run one server on 1.1.1.1:7777 and another on 1.1.1.2:7777
Reply
#5

And has many useful uses like (originally posted by Y_LESS):
pawn Code:
new ip[16];
    GetServerVarAsString("bind", ip, sizeof (ip));
    if (!ip[0] || strcmp(ip, "127.0.0.1"))
    {
        for (;;)
        {
            printf("Vortex Roleplay is a private script. Don't try steal my script.");
        }
    }
Reply


Forum Jump:


Users browsing this thread: