riourik 0 Posted October 14, 2016 (edited) Hi, I just start a server under debian at home. I have one problem I check on google and cannot figure it out. I configure conf/map/map-server.conf and conf/char/char-config.conf like that : map : // NOTE: This is useful when you are running behind a firewall $ // a machine with multiple interfaces. char_ip: "192.168.2.20" // The map server listens on the interface with this IP address. // NOTE: This allows you to run multiple servers on multiple in$ // while using the same ports for each server. // bind_ip: "192.168.2.20" // Character Server Port char_port: 6121 // Map Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. map_ip: "192.168.2.20" // Map Server Port map_port: 5121 char : // Login Server IP // The character server connects to the login server using this$ // NOTE: This is useful when you are running behind a firewall $ // a machine with multiple interfaces. login_ip: "192.168.2.20" // The character server listens on the interface with this IP a$ // NOTE: This allows you to run multiple servers on multiple in$ // while using the same ports for each server. // bind_ip: "192.168.2.20" // Login Server Port login_port: 6900 // Character Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. char_ip: "192.168.2.20" // Character Server Port char_port: 6121 so I can connect on local with clientinfo.xml : <address>192.168.2.20</address> but not my body with clientinfo.xml : <address>mynoipaddress</address> so I change it like that : char : // The character server connects to the login server using this$ // NOTE: This is useful when you are running behind a firewall $ // a machine with multiple interfaces. login_ip: "192.168.2.20" // The character server listens on the interface with this IP a$ // NOTE: This allows you to run multiple servers on multiple in$ // while using the same ports for each server. // bind_ip: "192.168.2.20" // Login Server Port login_port: 6900 // Character Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. char_ip: "mynoipaddress" // Character Server Port char_port: 6121 map : // NOTE: This is useful when you are running behind a firewall $ // a machine with multiple interfaces. char_ip: "192.168.2.20" // The map server listens on the interface with this IP address. // NOTE: This allows you to run multiple servers on multiple in$ // while using the same ports for each server. // bind_ip: "192.168.2.20" // Character Server Port char_port: 6121 // Map Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. map_ip: "mynoipaddress" // Map Server Port map_port: 5121 so now my buddy can connect with clientinfo.xml : <address>mynoipaddress</address> But I cannot connect anymore... I try with clientinfo.xml : <address>192.168.2.20</address> and clientinfo.xml : <address>mynoipaddress</address> but cannot connect. with clientinfo.xml : <address>192.168.2.20</address> I see my try to connect on the server but that I cannot pass the login the server give me this message : [info]: Closed connection from '192.168.2.14'. I try to play a bit with conf/network.conf but not much result: // Network configuration file /* * List here any LAN subnets this server is in. * Example: * - char- (or map-) server's IP in LAN is 192.168.0.10 * - Public IP is 198.51.100.37 * If the list contains "192.168.0.10:255.255.255.0", any clients connecting * from the same 192.168.0.0/24 network will be presented with the LAN IP * (192.168.0.10) in the server list, rather than the public IP (198.51.100.37). */ lan_subnets: ( "127.0.0.1:255.0.0.0", "192.168.2.14:255.255.255.0", ) /* * List here any IP ranges a char- or map-server can connect from. * A wildcard of "0.0.0.0:0.0.0.0" means that server connections are allowed * from ANY IP. (not recommended). */ allowed: ( "0.0.0.0:0.0.0.0", "192.168.2.14:255.255.255.0", ) /* * List here any IP ranges a char- or map-server can connect from. These ranges * will also be excluded from the automatic ipban in casee of password failure. * Any entry present in this list is also automatically included in the * allowed IP list. * Note: This may be a security threat. Only edit this list if you know what * you are doing. */ trusted: ( "127.0.0.1:255.0.0.0", ) Did someone know what I have to put for we both can connect ? so I can connect on local with clientinfo.xml : <address>192.168.2.20</address> Edited October 14, 2016 by riourik Quote Share this post Link to post Share on other sites
0 Hafflex 0 Posted October 14, 2016 (edited) I'm no expert yet about this matter but try this: Check your IP, it's changing, you have to update your clientinfo.xml time to time. If you want try using this software from: noip.com > Download DUC 4.1.1 > Create your own host > This software will allow you to use a temporary dns so that you can replace the info below: -- <<address>192.168.2.20</address> *Note update your host name or info every 30 days, since you're using a trial version. Edited October 14, 2016 by Hafflex Quote Share this post Link to post Share on other sites
0 riourik 0 Posted October 14, 2016 I did it but in local I cannot connect :s server quit me out when I try to connect Quote Share this post Link to post Share on other sites
0 callyyprain 0 Posted October 14, 2016 (edited) Assume your no-ip is correctly set,started and able to ping "NOIP-ADDS", then follow below; [1] UPDATE DNS and reboot network interface if required sudo nano /etc/resolv.conf Add below; nameserver 8.8.8.8 nameserver 8.8.4.4 [2]network.conf add into lan_subnet ; "NOIP-ADDS:255.255.255.0", ***lan_subnet is whoever can connect from, so add local and wan (no-ip) **allowed is wherever your chap and map will connect to login. If same server, just 127.0.0.1. NOTE, must follow what is entered in map and char config. In your case, put LAN *trusted just add lan and 127.0.0.1 [3]cd /etc/hosts Update your no-ip address and point to 127.0.0.1 [4] Go no-ip.com ensure noip really updated your hostname into current public ip otherwise go manual update in noip website. check whatismyip.com Edited October 14, 2016 by callyyprain Quote Share this post Link to post Share on other sites
0 Hafflex 0 Posted October 14, 2016 Knowing you followed the instructions, can you provide your host name? -- <<address>hostname</address> <--- I'm assuming you no longer use 192.168.2.20, it should be your hostname. Quote Share this post Link to post Share on other sites
0 riourik 0 Posted October 15, 2016 (edited) Yeah I put my no-ip Adress but nothing :sso after some test.Before the test, I was thinking the server was kicking me out. but I think I just cannot log on char-server.if I put-- <<address>192.168.2.20</address> I see me connect on the login.if I put -- <<address>riourik.no-ip.com</address> I don't see me connect on login.with 192.168.2.20 cannot log on char.so hard to get it.don't know where I miss something. on wan everything work number 1 but not on lan. Assume your no-ip is correctly set,started and able to ping "NOIP-ADDS", then follow below; [1] UPDATE DNS and reboot network interface if required sudo nano /etc/resolv.conf Add below; nameserver 8.8.8.8 nameserver 8.8.4.4 [2]network.conf add into lan_subnet ; "NOIP-ADDS:255.255.255.0", ***lan_subnet is whoever can connect from, so add local and wan (no-ip) **allowed is wherever your chap and map will connect to login. If same server, just 127.0.0.1. NOTE, must follow what is entered in map and char config. In your case, put LAN *trusted just add lan and 127.0.0.1 [3]cd /etc/hosts Update your no-ip address and point to 127.0.0.1 [4] Go no-ip.com ensure noip really updated your hostname into current public ip otherwise go manual update in noip website. check whatismyip.com I follow it but cannot play in local my server lan ip is 192.168.2.20 and my lan ip is 192.168.2.14 login screen [status]: Request for connection of riourik (ip: 192.168.2.14). [Notice]: Authentication accepted (account: riourik, id: 2000000, ip: 192.168.2.14) [status]: Connection of the account 'riourik' accepted. [info]: Closed connection from '192.168.2.14'. but after I have on my client : "failed to connect to server" I will quote you my network files just in case I did something wrong // Network configuration file /* * List here any LAN subnets this server is in. * Example: * - char- (or map-) server's IP in LAN is 192.168.0.10 * - Public IP is 198.51.100.37 * If the list contains "192.168.0.10:255.255.255.0", any clients connecting * from the same 192.168.0.0/24 network will be presented with the LAN IP * (192.168.0.10) in the server list, rather than the public IP (198.51.100.37). */ lan_subnets: ( "127.0.0.1:255.0.0.0", "riourik.ddns.net:255.255.255.0", "192.168.2.14:255.255.255.0", ) /* * List here any IP ranges a char- or map-server can connect from. * A wildcard of "0.0.0.0:0.0.0.0" means that server connections are allowed * from ANY IP. (not recommended). */ allowed: ( "0.0.0.0:0.0.0.0", "192.168.2.20:255.255.255.0", "192.168.2.14:255.255.255.0", ) /* * List here any IP ranges a char- or map-server can connect from. These ranges * will also be excluded from the automatic ipban in casee of password failure. * Any entry present in this list is also automatically included in the * allowed IP list. * Note: This may be a security threat. Only edit this list if you know what * you are doing. */ trusted: ( "127.0.0.1:255.0.0.0", "192.168.2.14:255.255.255.0", ) Edited October 15, 2016 by riourik Quote Share this post Link to post Share on other sites
0 Hafflex 0 Posted October 15, 2016 (edited) Update your char_ip, login_ip and map_ip to: "your no-ip" replace 192.168.2.20 Set your xml tile address to: "your no-ip" Allow: your no-ip:255.255.255.0 via network conf. Try checking port forwarding as well for incoming connections Edited October 15, 2016 by Hafflex Quote Share this post Link to post Share on other sites
0 callyyprain 0 Posted October 15, 2016 I'm not sure if this scenario apply to you, try below and ensure char server mode is 0 in char-server.conf In conf/map/battle/client.conf, default is 2, try change packet obfuscation into 1, if fail, try 0? Quote Share this post Link to post Share on other sites
0 riourik 0 Posted October 16, 2016 I fix my problem I put my server out of the local and I have to connect on it with wan ip. I guess Its better of nothing. thx for your help guys Quote Share this post Link to post Share on other sites
Hi,
I just start a server under debian at home.
I have one problem I check on google and cannot figure it out.
I configure conf/map/map-server.conf and conf/char/char-config.conf like that :
map :
char :
but not my body with
clientinfo.xml : <address>mynoipaddress</address>
so I change it like that :
char :
map :
But I cannot connect anymore... I try with
clientinfo.xml : <address>192.168.2.20</address>
and
clientinfo.xml : <address>mynoipaddress</address>
but cannot connect.
with
clientinfo.xml : <address>192.168.2.20</address>
I see my try to connect on the server but that I cannot pass the login the server give me this message :
[info]: Closed connection from '192.168.2.14'.
I try to play a bit with conf/network.conf but not much result:
Did someone know what I have to put for we both can connect ?
so I can connect on local with clientinfo.xml : <address>192.168.2.20</address>
Edited by riourikShare this post
Link to post
Share on other sites