Jump to content
  • 0

Server not starting UDP listeners (r40k files)


MuscleTex

Question

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.

Link to comment

6 answers to this question

Recommended Posts

  • 0

You can't run metin2 server over nat without game modification. You can check what is wrong by downloading currports or other connection manager for windows and check what address is returned by game. If you running server on lan for yourself you can add -I parametr with you local ip address

  • Love 1
Link to comment
  • 0

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
  • 0

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.
https://drive.google.com/file/d/0B1urC35OLzL1M095Tlp0ZjNidDg/edit?usp=sharing

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 [email protected]# player
COMMON_SQL: localhost mt2 [email protected]# common
LOG_SQL: localhost mt2 [email protected]# 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Read our Rules
  • Activity

    1. 8

      WaveSystem

    2. 0

      error: unable to find library

    3. 19

      Race Height of Actors

    4. 2

      How to add Chromium Embedded Browser ?

    5. 2

      How to add Chromium Embedded Browser ?

    6. 2

      How to add Chromium Embedded Browser ?

    7. 1

      Fish stack catch

  • Recently Browsing

    No registered users viewing this page.

×
×
  • 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.