Forum

> > CS2D > Servers > Port 36964
Forums overviewCS2D overview Servers overviewLog in to reply

English Port 36964

8 replies
To the start Previous 1 Next To the start

old Port 36964

Marcell
Super User Off Offline

Quote
Hi... i started my server but when i see cs2d.com/servers.php
and my server use 36964.. but anyway my server port is 36963
whats the problem?

old Re: Port 36964

Fossil
User Off Offline

Quote
It's really just the same bro. The only difference in using anothedr port is that you won't see it in the LAN part of your server list. But as long as your forwarded your port that you are using, it will still show up on the server list.

old Re: Port 36964

Apache uwu
User Off Offline

Quote
Weird how the server.php page shows a different number than from the masterserver's list. I wonder what DC has to say about this.

old Re: Port 36964

DC
Admin Off Offline

Quote
Those two lists never show different ports. The port displayed at cs2d.com/servers.php is always the same as the port displayed in the in-game list because both lists are created from one and the same data source (the masterserver itself).

It happens that another port is displayed in the list than you actually specified in the settings though. This can be ignored in 99,99% of all cases because the listed port normally works as well. If it leads to problems anyway start your server with the commandline parameter -realport (this is not necessary in most cases! Try the steps at www.cs2d.com/faq first if people can't connect!)

old Re: Port 36964

Marcell
Super User Off Offline

Quote
they can connect with 36963... but why show 36964?:O

old Re: Port 36964

DC
Admin Off Offline

Quote
It's weird router internet magic. I actually don't know. The library I use does it for whatever reason. I'm not responsible Are you sure that they can't join with 36964 which is displayed in the serverlist? Then use -realport!

old Re: Port 36964

Marcell
Super User Off Offline

Quote
i get work with this command ./######/cs2d_dedicated -realport
and now show myip:36963 in cs2d.com/servers.php

but when i start this. /etc/init.d/cs2d start
in serverlist show 36964

it is my script for cs2d

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# The user that will run the server
user=marci

# Leave this alone.
NAME=cs2d

PATH=/bin:/usr/bin:/sbin:/usr/sbin

# DON'T FORGET TO CHANGE THE PATH TO YOUR NEEDS!
DIR=/cs2dhungary

# Leave this alone.
DAEMON=cs2d_dedicated

# Internet-server:
PARAMS=""

# Leave this alone.
DESC="Server"

case "$1" in
 start)
    if [[ `su $user -c "screen -ls |grep $NAME"` ]]
       then
       echo "Server is already running!"
    else 
       echo "Starting $DESC"
       su $user -c "cd $DIR; screen -m -d -S cs2d ./$DAEMON"
    fi
    ;;

 stop)
    if [[ `su $user -c "screen -ls |grep $NAME"` ]]
       then
       echo -n "Stopping $DESC"
       kill `ps aux | grep -v grep | grep -i $user | grep -i screen | grep -i $NAME | awk '{print $2}'`
       echo " ... done."
    else
       echo "Coulnd't find a running $DESC"
    fi
    ;;

 restart)
    if [[ `su $user -c "screen -ls |grep $NAME"` ]]
       then
       echo -n "Stopping $DESC"
       kill `ps aux | grep -v grep | grep -i $user | grep -i screen | grep -i $NAME | awk '{print $2}'`
       echo " ... done."
    else
       echo "Coulnd't find a running $DESC"
    fi
   
    echo -n "Starting $DESC"
    su $user -c "cd $DIR; screen -m -d -S cs2d ./$DAEMON $PARAMS"
    echo " ... done."
    ;;

 status)
    ps aux | grep -v grep | grep cs2d > /dev/null
    CHECK=$?
    [ $CHECK -eq 0 ] && echo "Server is online" || echo "Server is offline"
    ;; 
 *)
    echo "Usage: $0 {start|stop|status|restart}"
    exit 1
    ;;
esac

exit 0
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview