So I have configured my server mostly properly, I think, so that my DNS converts to my current IP address (mydomain.com -> 123.456.789.000 for example), and I am successfully able to connect to my server over LAN, but as soon as I try to connect over an internet connection outside of my home, I can log into my account but after about 10 seconds it returns a "failed to connect to server" error.
The login server recognizes my attempt, but as soon as it tries to pass me to the character server, it fails.
Here is my network.conf configuration:
/ 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.1.151: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",
//"127.0.0.1:255.0.0.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.1.151:255.255.255.0",
)
where 192.168.1.151 is my Debian server's static LAN IP.
should I be putting mydomain.com anywhere in here? and if so, how?
EDIT: I figured it out everyone! For WHATEVER reason, there is nowhere in the documentation that states that the ports 6121 (character server) and 5121 (map server) need to be port forwarded in the router along with 6900. The way the documentation is written, it is made to sound that the map and character servers will connect to one another internally with these ports, and thus the only port you need open would be 6900, with all the traffic being piped through the login server. Let me tell you how many hours of sleep I've lost over this issue...
So I have configured my server mostly properly, I think, so that my DNS converts to my current IP address (mydomain.com -> 123.456.789.000 for example), and I am successfully able to connect to my server over LAN, but as soon as I try to connect over an internet connection outside of my home, I can log into my account but after about 10 seconds it returns a "failed to connect to server" error.
The login server recognizes my attempt, but as soon as it tries to pass me to the character server, it fails.
Here is my network.conf configuration:
where 192.168.1.151 is my Debian server's static LAN IP.
should I be putting mydomain.com anywhere in here? and if so, how?
EDIT: I figured it out everyone! For WHATEVER reason, there is nowhere in the documentation that states that the ports 6121 (character server) and 5121 (map server) need to be port forwarded in the router along with 6900. The way the documentation is written, it is made to sound that the map and character servers will connect to one another internally with these ports, and thus the only port you need open would be 6900, with all the traffic being piped through the login server. Let me tell you how many hours of sleep I've lost over this issue...
Edited by SemperverusShare this post
Link to post
Share on other sites