Jump to content
  • 0

Failed to connect to server


Question

Posted (edited)

When i connect locally with 127.0.0.1 in my clientinfo.xml it works just fine.
The problem i am experiencing is with connections from the outside when i have my WAN IP in the clientinfo.xml.
When a player logs in from the outside it will go up to the server select.
Once the server has been selected i get a message `waiting` and after several seconds `failed to connect to server`.
I have made firewall exceptions for mapserver_sql, charserver_sql and loginserver_sql.
I have added port forwards for both UDP and TCP on all 3 ports.
Here are my files:

src: port forwarding router
 

ports_forwarded.png

src: map_athena.conf



//--------------------------------------------------------------
//rAthena Map-Server Configuration File
//--------------------------------------------------------------

// Note: "Comments" are all text on the right side of a double slash "//"
// Whatever text is commented will not be parsed by the servers, and serves
// only as information/reference.

//--------------------------------------------------------------
//                     Configuration Info
//--------------------------------------------------------------
// Interserver communication passwords, set in account.txt (or equiv.)
userid: dummy
passwd: password

// Character Server IP
// The map server connects to the character server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
char_ip: 127.0.0.1

// The map server listens on the interface with this IP address.
// NOTE: This allows you to run multiple servers on multiple interfaces
// while using the same ports for each server.
//bind_ip: 127.0.0.1

// 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: 86.80.120.130

// Map Server Port
map_port: 5121

src: char_athena.conf

// Athena Character configuration file.

// Note: "Comments" are all text on the right side of a double slash "//"
// Whatever text is commented will not be parsed by the servers, and serves
// only as information/reference.

// Server Communication username and password.
userid: dummy
passwd: password

// Server name, use alternative character such as ASCII 160 for spaces.
// NOTE: Do not use spaces or any of these characters which are not allowed in 
//       Windows filenames \/:*?"<>|
//       ... or else guild emblems won't work client-side!
server_name: rAthena

// Wisp name for server: used to send wisp from server to players (between 4 to 23 characters)
wisp_server_name: Server

// Login Server IP
// The character server connects to the login server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
login_ip: 127.0.0.1

// The character server listens on the interface with this IP address.
// NOTE: This allows you to run multiple servers on multiple interfaces
// while using the same ports for each server.
//bind_ip: 127.0.0.1

// 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: 86.80.120.130

// Character Server Port
char_port: 6121

src: subnet_athena.conf

// Subnet support file
// Format is:
// subnet: net-submask:char_ip:map_ip
// you can add more than one subnet 

//Standard
subnet: 255.0.0.0:127.0.0.1:127.0.0.1

//LAN
subnet: 255.255.255.0:192.168.2.254:192.168.2.254

//WAN
subnet: 255.255.255.0:86.80.120.130:86.80.120.130

src: packet_db.txt

packet_db_ver: 30

//2012-04-10aRagexeRE
packet_ver: 30
0x01FD,15,repairitem,2
0x089C,26,friendslistadd,2
0x0885,5,hommenu,2:4
0x0961,36,storagepassword,0
0x0288,-1,cashshopbuy,4:8
0x091C,26,partyinvite2,2
0x094B,19,wanttoconnection,2:6:10:14:18
0x0369,7,actionrequest,2:6
0x083C,10,useskilltoid,2:4:6
0x0439,8,useitem,2:4
0x0945,-1,itemlistwindowselected,2:4:8
0x0815,-1,reqopenbuyingstore,2:4:8:9:89
0x0817,2,reqclosebuyingstore,0
0x0360,6,reqclickbuyingstore,2
0x0811,-1,reqtradebuyingstore,2:4:8:12
0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15
0x0835,2,searchstoreinfonextpage,0
0x0838,12,searchstoreinfolistitemclick,2:6:10
0x0437,5,walktoxy,2
0x0886,6,ticksend,2
0x0871,5,changedir,2:4
0x0938,6,takeitem,2
0x0891,6,dropitem,2:4
0x086C,8,movetokafra,2:4
0x08A6,8,movefromkafra,2:4
0x0438,10,useskilltopos,2:4:6:8
0x0366,90,useskilltoposinfo,2:4:6:8:10
0x0889,6,getcharnamerequest,2
0x0884,6,solvecharname,2
0x08E5,41,bookingregreq,2:4	//Added to prevent disconnections
0x08E6,4
0x08E7,10,bookingsearchreq,2
0x08E8,-1
0x08E9,2,bookingdelreq,2
0x08EA,4
0x08EB,39,bookingupdatereq,2
0x08EC,73
0x08ED,43
0x08EE,6
0x08EF,6,bookingignorereq,2
0x08F0,6
0x08F1,6,bookingjoinpartyreq,2
0x08F2,36
0x08F3,-1
0x08F4,6
0x08F5,-1,bookingsummonmember,2:4
0x08F6,22
0x08F7,3
0x08F8,7
0x08F9,6
0x08FA,6
0x08FB,6,bookingcanceljoinparty,2
0x0907,5,moveitem,2:4
0x0908,5
0x08D7,28,battlegroundreg,2:4 //Added to prevent disconnections
0x08CF,10 //Amulet spirits
0x0977,14 //Monster HP Bar

2012_05_10a_Ragexe_Re.png

 

src: mmo.h

#ifndef PACKETVER
	#define PACKETVER 20120410
	//#define PACKETVER 20111116
#endif

src: clientinfo.xml

<?xml version="1.0" encoding="euc-kr" ?>
<clientinfo>
    <servicetype>korea</servicetype>
    <servertype>sakray</servertype>
    <connection>
        <display>Style RO</display>
        <desc>Style RO</desc>
        <address>86.80.120.130</address>
        <port>6900</port>
        <version>30</version>
        <langtype>10</langtype>
        <balloon>Style RO</balloon>
        <aid>
			<admin>2000000</admin>
		<loading>
			<image>loading00.jpg</image>
		</loading>
        </aid>
    </connection>
</clientinfo>

Will add in more details (need to upload screenshots etc).

Note~ I am using a .grf file instead of a data folder, i also have `read data folder` disabled when i diffed it.

Edited by style_ro_info

2 answers to this question

Recommended Posts

Posted
 

When i connect locally with 127.0.0.1 in my clientinfo.xml it works just fine.
The problem i am experiencing is with connections from the outside when i have my WAN IP in the clientinfo.xml.
When a player logs in from the outside it will go up to the server select.
Once the server has been selected i get a message `waiting` and after several seconds `failed to connect to server`.
I have made firewall exceptions for mapserver_sql, charserver_sql and loginserver_sql.
I have added port forwards for both UDP and TCP on all 3 ports.
Here are my files:

src: port forwarding router
 

ports_forwarded.png

src: map_athena.conf


//--------------------------------------------------------------
//rAthena Map-Server Configuration File
//--------------------------------------------------------------

// Note: "Comments" are all text on the right side of a double slash "//"
// Whatever text is commented will not be parsed by the servers, and serves
// only as information/reference.

//--------------------------------------------------------------
// Configuration Info
//--------------------------------------------------------------
// Interserver communication passwords, set in account.txt (or equiv.)
userid: dummy
passwd: password

// Character Server IP
// The map server connects to the character server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
char_ip: 127.0.0.1

// The map server listens on the interface with this IP address.
// NOTE: This allows you to run multiple servers on multiple interfaces
// while using the same ports for each server.
//bind_ip: 127.0.0.1

// 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: 86.80.120.130

// Map Server Port
map_port: 5121

src: char_athena.conf

// Athena Character configuration file.

// Note: "Comments" are all text on the right side of a double slash "//"
// Whatever text is commented will not be parsed by the servers, and serves
// only as information/reference.

// Server Communication username and password.
userid: dummy
passwd: password

// Server name, use alternative character such as ASCII 160 for spaces.
// NOTE: Do not use spaces or any of these characters which are not allowed in
// Windows filenames \/:*?"<>|
// ... or else guild emblems won't work client-side!
server_name: rAthena

// Wisp name for server: used to send wisp from server to players (between 4 to 23 characters)
wisp_server_name: Server

// Login Server IP
// The character server connects to the login server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
login_ip: 127.0.0.1

// The character server listens on the interface with this IP address.
// NOTE: This allows you to run multiple servers on multiple interfaces
// while using the same ports for each server.
//bind_ip: 127.0.0.1

// 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: 86.80.120.130

// Character Server Port
char_port: 6121

src: subnet_athena.conf

// Subnet support file
// Format is:
// subnet: net-submask:char_ip:map_ip
// you can add more than one subnet

//Standard
subnet: 255.0.0.0:127.0.0.1:127.0.0.1

//LAN
subnet: 255.255.255.0:192.168.2.254:192.168.2.254

//WAN
subnet: 255.255.255.0:86.80.120.130:86.80.120.130

src: packet_db.txt

packet_db_ver: 30

//2012-04-10aRagexeRE
packet_ver: 30
0x01FD,15,repairitem,2
0x089C,26,friendslistadd,2
0x0885,5,hommenu,2:4
0x0961,36,storagepassword,0
0x0288,-1,cashshopbuy,4:8
0x091C,26,partyinvite2,2
0x094B,19,wanttoconnection,2:6:10:14:18
0x0369,7,actionrequest,2:6
0x083C,10,useskilltoid,2:4:6
0x0439,8,useitem,2:4
0x0945,-1,itemlistwindowselected,2:4:8
0x0815,-1,reqopenbuyingstore,2:4:8:9:89
0x0817,2,reqclosebuyingstore,0
0x0360,6,reqclickbuyingstore,2
0x0811,-1,reqtradebuyingstore,2:4:8:12
0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15
0x0835,2,searchstoreinfonextpage,0
0x0838,12,searchstoreinfolistitemclick,2:6:10
0x0437,5,walktoxy,2
0x0886,6,ticksend,2
0x0871,5,changedir,2:4
0x0938,6,takeitem,2
0x0891,6,dropitem,2:4
0x086C,8,movetokafra,2:4
0x08A6,8,movefromkafra,2:4
0x0438,10,useskilltopos,2:4:6:8
0x0366,90,useskilltoposinfo,2:4:6:8:10
0x0889,6,getcharnamerequest,2
0x0884,6,solvecharname,2
0x08E5,41,bookingregreq,2:4    //Added to prevent disconnections
0x08E6,4
0x08E7,10,bookingsearchreq,2
0x08E8,-1
0x08E9,2,bookingdelreq,2
0x08EA,4
0x08EB,39,bookingupdatereq,2
0x08EC,73
0x08ED,43
0x08EE,6
0x08EF,6,bookingignorereq,2
0x08F0,6
0x08F1,6,bookingjoinpartyreq,2
0x08F2,36
0x08F3,-1
0x08F4,6
0x08F5,-1,bookingsummonmember,2:4
0x08F6,22
0x08F7,3
0x08F8,7
0x08F9,6
0x08FA,6
0x08FB,6,bookingcanceljoinparty,2
0x0907,5,moveitem,2:4
0x0908,5
0x08D7,28,battlegroundreg,2:4 //Added to prevent disconnections
0x08CF,10 //Amulet spirits
0x0977,14 //Monster HP Bar

2012_05_10a_Ragexe_Re.png

 

src: mmo.h

#ifndef PACKETVER
    #define PACKETVER 20120410
    //#define PACKETVER 20111116
#endif

src: clientinfo.xml

<?xml version="1.0" encoding="euc-kr" ?>
<clientinfo>
<servicetype>korea</servicetype>
<servertype>sakray</servertype>
<connection>
<display>Style RO</display>
<desc>Style RO</desc>
<address>86.80.120.130</address>
<port>6900</port>
<version>30</version>
<langtype>10</langtype>
<balloon>Style RO</balloon>
<aid>
            <admin>2000000</admin>
        <loading>
            <image>loading00.jpg</image>
        </loading>
</aid>
</connection>
</clientinfo>

Will add in more details (need to upload screenshots etc).

Note~ I am using a .grf file instead of a data folder, i also have `read data folder` disabled when i diffed it.

 
 

Did you disable the Packet Encryption Diff in your client?

Posted

I'm sorry, what is the packet encryption diff?
For the diffing im using WeeDiffGenerator with 2012-04-10aRagexeRE.
The only diffs that i see which contain the word "packet" are:

- [FIX] Force Send Client Hash Packet { not selected }
- [Packet] Skip Packet Header Obfuscation { selected }
- [FIX] Skip Packet Header Obfuscation (yes a 2nd one is there)  { not selected }

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...