[HELP] socket_tcp_bind: tcp_socket: Can't assign requested address

10/29/2017 10:57 5050hurin#1
Hello,
I want open metin2 server on freebsd 12 but on all game 28k/34k/40k/ i have all times the same problem :
socket_tcp_bind: tcp_socket: Can't assign requested address
I tried with config BIND_IP/PUBLIC_IP: PUBLICIP - still dont work
I tried with dif Internal IP Fix still didnt work

I suspect this is something with the freebsd configuration does anyone have any ideas? ( I use google cloud servers ) I can pay for help:handsdown:
10/29/2017 13:02 Lauling#2
maybe you have core they use the same port
check all configs and give all core a own port
reboot the server and try it again mabye thats a solution for u
what sf do you use?
10/29/2017 15:33 5050hurin#3
Quote:
Originally Posted by Lauling View Post
maybe you have core they use the same port
check all configs and give all core a own port
reboot the server and try it again mabye thats a solution for u
what sf do you use?
I use sf game 34k i change freebsd to 12 and I dont have this problem but i cant login into world only on auth> character choose
@
Now i change freebsd to 10.3 minimal version to i can downgrade :|
Still the same problem
SYSERR: Oct 29 14:45:41 :: socket_bind: bind: Can't assign requested address
i try change ports/etc dont work :P

[Only registered and activated users can see links. Click Here To Register...] - this is good network configuration? :|
10/29/2017 21:06 Lauling#4
Quote:
Originally Posted by 5050hurin View Post
I use sf game 34k i change freebsd to 12 and I dont have this problem but i cant login into world only on auth> character choose
@
Now i change freebsd to 10.3 minimal version to i can downgrade :|
Still the same problem
SYSERR: Oct 29 14:45:41 :: socket_bind: bind: Can't assign requested address
i try change ports/etc dont work :P

[Only registered and activated users can see links. Click Here To Register...] - this is good network configuration? :|
which start script do you use?

for example, i use a startscript like this
PHP Code:
#!/bin/sh

# VARIABLES
SERVER_IP=192.168.133.7
GAME_DIR
=/home/game2
TIMESTAMP
=`date "+%Y-%m-%d-%H-%M"`
BACKUP_DIR=${GAME_DIR}/_BACKUPS/${TIMESTAMP}

# FUNCTIONS
min() {
    echo $(($
< $? $: $2))
}

start_server() {
    echo 
"Wieviele Channels sollen gestartet werden (max. 4)?"
    
read channel_count
    channel_count 
= $(min $channel_count 4)
    
    
clear
    
    cd $GAME_DIR
    
echo -"\033[32mDer Server wird gestartet ...\033[0m"
    
cd database
        
./database -I $SERVER_IP &
        
cd ..
    
sleep 5
    cd auth
        
./auth -I $SERVER_IP &
        
cd ..
    
cur_chan=1
    
while [ $cur_chan -lt `expr $channel_count + 1` ]
    do
        
cd channel${cur_chan}
            
cur_core=1
            
while [ $cur_core -lt 6 ]
            do
                
cd core${cur_core}
                    ./
channel${cur_chan}_core${cur_core} -I $SERVER_IP &
                    
cd ..
                
cur_core=`expr $cur_core + 1`
            
done
            cd 
..
        
cur_chan=`expr $cur_chan + 1`
    
done
    cd channel99
        cur_core99
=1
        
while [ $cur_core99 -lt 6 ]
        do
            
cd core${cur_core99}
                ./
channel99_core${cur_core99} -I $SERVER_IP &
                
cd ..
            
cur_core99=`expr $cur_core99 + 1`
        
done
        cd 
..
    
sleep 1
    
echo -"\033[32mDer Server wurde gestartet.\033[0m"
}

stop_server() {
    
cd $GAME_DIR
    
echo -"\033[32mDer Server wird gestoppt ...\033[0m"
    
cd auth
        
if [ -./pid ]; then
            kill 
-`cat ./pid`
        
fi
        cd 
..
    
cur_chan=1
    
while [ $cur_chan -lt 5 ]
    do
        
cd channel${cur_chan}
            
cur_core=1
            
while [ $cur_core -lt 6 ]
            do
                
cd core${cur_core}
                    if [ -
./pid ]; then
                        kill 
-`cat ./pid`
                    
fi
                    cd 
..
                
cur_core=`expr $cur_core + 1`
            
done
            cd 
..
        
cur_chan=`expr $cur_chan + 1`
    
done
    cd channel99
        cur_core99
=1
        
while [ $cur_core99 -lt 6 ]
        do
            
cd core${cur_core99}
                if [ -
./pid ]; then
                    kill 
-`cat ./pid`
                
fi
                cd 
..
            
cur_core99=`expr $cur_core99 + 1`
        
done
        cd 
..
    echo -
"\033[33m    Warten auf Datenbank-Flush ...\033[0m"
    
sleep 10
    cd database
        
if [ -./pid ]; then
            kill 
-`cat ./pid`
        
fi
        cd 
..
    echo -
"\033[32mDer Server wurde gestoppt.\033[0m"
}

compile_quests() {
    
cd $GAME_DIR/home/game2/share/locale/germany/quest
    rm 
-R object
    python 
./make_quest
}

restart_cores() {
    
stop_server
    sleep 15
    start_server
}

clear

if [ $# == "1" ] && ([ $1 == "start" ] || [ $1 == "stop" ] || [ $1 == "quest" ] || [ $1 == "restart" ]); then
    
if [ $== "start" ]; then
        start_server
    elif 
[ $== "stop" ]; then
        stop_server
    elif 
[ $== "quest" ]; then
        compile_quests
    elif 
[ $== "restart" ]; then
        restart_cores
    fi
else
    echo -
""
    
echo -"  \033[33m\033[1m###########################################################################\033[0m"
    
echo -"  \033[33m\033[1m##\033[0m                           \033[31mVERWALTUNGS PANEL\033[0m                           \033[33m\033[1m##\033[0m"
    
echo -"  \033[33m\033[1m###########################################################################\033[0m"
    
echo -"  \033[33m\033[1m##\033[0m                                                                       \033[33m\033[1m##\033[0m"
    
echo -"  \033[33m\033[1m##\033[0m   \033[35m1   -   Server starten\033[0m      \033[33m\033[1m#\033[0m   \033[35m2   -   Server stoppen\033[0m              \033[33m\033[1m##\033[0m"
    
echo -"  \033[33m\033[1m##\033[0m   \033[35m3   -   Server neu starten\033[0m  \033[33m\033[1m#\033[0m   \033[35m4   -   Quests kompillieren\033[0m         \033[33m\033[1m##\033[0m"
    
echo -"  \033[33m\033[1m##\033[0m                                                                       \033[33m\033[1m##\033[0m"
    
echo -"  \033[33m\033[1m###########################################################################\033[0m"
    
echo -""

    
read choice

    clear

    
case $choice in

    1
*)
        
start_server
    
;;
    
2*)
        
stop_server
    
;;
    
3*)
        
restart_cores
    
;;
    
4*)
        
compile_quests
    
;;
    
esac
fi 
in my start script, i have to write my IP
PHP Code:
SERVER_IP=192.168.133.7 
myabe you serverfiles need the same startscript with SERVER_IP command

regards
10/29/2017 22:44 5050hurin#5
My start script:


actually i tried ./game -I PUBLICIP but still but I have the same problem :d
10/30/2017 19:16 Lauling#6
which serverfile do you use? i can see, you need libs to start the server.
Do you have the server/client source from the serverfiles? Mybe the problem is the lib, it can be, that this libs are not campatible with freebsd 10.0 or higher
when u have the source of the files, u can edit that u dont need this libs, i think it better to start a server without libs.

regards