Jump to content

Server not starting UDP listeners (r40k files)


Recommended Posts

Hi guys,

 

I have a problem on my server running the 40k files. Everything starts as it should but when i use "sockstat -4" to see if the port listeners are running, there are udp ports missing. This results in a disconnect while trying to connect to the server from the client. (I can see the characters in my account but as soon as the loading screen appears, it goes back to login).

 

Screen:

e2557dqj.png

 

I tried to use the vanilla files -> same problem. I tried to use all config files from another running server -> same problem.

 

Right now I have no idea what I should try next to get this server running. 

 

What do you guys think? For me it would be okay to get a link to good 40k files, because I want to use them, not older ones.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

yes you can't. Server will work only when client will have same subnet ip address and will conect with this ip. You can make diff for skip ip checking internal/external address  and run game with -I 123.134.145.156 ip address. Game will be listen on all possible address and in packet will send ip address with external address

  • Love 1
Link to comment
Share on other sites

Okay, is there a thread showing how to do that with the diff file or can you show me how?

Edit:
I made a screen capture while making a login for you guys to see what my problem is.

This is the hidden content, please

Further you can see my serverinfo.py of the client here:

import app

app.ServerName = None

STATE_NONE = '...'
		
STATE_DICT = {
	0 : 'leer',
	1 : 'normal',
	2 : 'belebt',
	3 : 'voll'	}

SERVER1_CHANNEL_DICT = {
	1:{'key':11,'name':'CH1','ip':'192.168.192.40','tcp_port':13001,'udp_port':13001,'state':STATE_NONE,},
	#2:{'key':12,'name':'CH2   ','ip':'192.168.192.40','tcp_port':62210,'udp_port':62210,'state':STATE_NONE,},
	#4:{'key':14,'name':'CH3   ','ip':'192.168.192.40','tcp_port':62310,'udp_port':62310,'state':STATE_NONE,},
	#3:{'key':13,'name':'CH4   ','ip':'192.168.192.40','tcp_port':62410,'udp_port':62410,'state':STATE_NONE,},
	#5:{'key':13,'name':'CH5   ','ip':'192.168.192.40','tcp_port':62410,'udp_port':62410,'state':STATE_NONE,},
	#6:{'key':13,'name':'CH6   ','ip':'192.168.192.40','tcp_port':62410,'udp_port':62410,'state':STATE_NONE,},
	#7:{'key':13,'name':'CH7   ','ip':'192.168.192.40','tcp_port':62410,'udp_port':62410,'state':STATE_NONE,},
	#8:{'key':13,'name':'CH8   ','ip':'192.168.192.40','tcp_port':62410,'udp_port':62410,'state':STATE_NONE,},
}
REGION_NAME_DICT = {
	0 : 'GERMANY',
}

REGION_AUTH_SERVER_DICT = {
	0 : {
		1 : { 'ip':'192.168.192.40', 'port':13000, }, 
		
		}	
}

REGION_DICT = {
	0 : {
		1 : { 'name' : 'yyy', 'channel' : SERVER1_CHANNEL_DICT, },
		},
}

MARKADDR_DICT = {
	10 : { 'ip' : '192.168.192.40', 'tcp_port' : 13001, 'mark' : '10.tga', 'symbol_path' : '10', },
	}

TESTADDR = { 'ip' : '192.168.192.40', 'tcp_port' : 13000, 'udp_port' : 13000, }

#DONE

Next there is my start.sh script:

#/bin/sh

echo -e "033[34m 
You are about to start the server yyy.

Choose how many channels you want to start [1-4]: n 
1) Start server with 1 channel.n 
2) Start server with 2 channels.n
3) Start server with 3 channels.n
4) Start server with 4 channels.n
________________________________________n"
read CHANNELS

if [ ( $CHANNELS -lt 1 ) -o ( $CHANNELS -gt 4 ) ];then
	echo -e "033[31mEnter a number between 1 and 4!033[0m"
	exit
fi

cd /game
echo -e "033[34mStarting up the database...033[0m"
cd db
./db -I 192.168.192.40 &
cd ..
echo -e "033[34mStarting the auth server...033[0m"
cd auth
./auth -I 192.168.192.40 &
cd ..
while [ $CHANNELS -ge 1 ]
do
	echo -e "033[34mStarting channel "$CHANNELS"...033[0m"
	sleep 1
	cd "./channel"$CHANNELS
	./game -I 192.168.192.40 &
	sleep 1
	cd ..
	CHANNELS=$(( $CHANNELS-1 ))
	sleep 1
done

echo -e "033[34mStarting game99...033[0m"
cd ./game99
./game -I 192.168.192.40 &
cd ..
sleep 4
echo -e "033[32myyy was successfully started.033[0m"
cd ~
./.profile

And to end up here is one of my CONFIG files (channel1), the other look nearly the same:

HOSTNAME: channel1
CHANNEL: 1
PORT: 13001
P2P_PORT: 14001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 1 3 4 5 21 23 24 25 41 43 44 45 61 62 63 64 65 66 69 70 71 72 73 104 108 109 67 68 80
#MAP_ALLOW: 113 184 185 186 187 188 189 193 179
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost mt2 mt2!@# player
COMMON_SQL: localhost mt2 mt2!@# common
LOG_SQL: localhost mt2 mt2!@# log
LOCALE_SERVICE: germany
NO_PK: 1
VIEW_RANGE: 8000
CHECK_MULTIHACK: 1

I hope you find something because I can't.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.