Jump to content
  • 0
Sign in to follow this  
riourik

problem connection wan+lan

Question

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 by riourik

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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 by Hafflex

Share this post


Link to post
Share on other sites
  • 0

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 by callyyprain

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

Yeah I put my no-ip Adress but nothing :s

so 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 by riourik

Share this post


Link to post
Share on other sites
  • 0

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 by Hafflex

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.