Jump to content
  • 0

map server, char server socket #2


NANORAY

Question


  • Group:  Members
  • Topic Count:  95
  • Topics Per Day:  0.02
  • Content Count:  210
  • Reputation:   3
  • Joined:  12/20/11
  • Last Seen:  

what will i do to fix this error. i need a guide.

post-924-0-60790800-1327056993_thumb.jpg

Link to comment
Share on other sites

15 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/07/12
  • Last Seen:  

I have a similar error, but with 3CeAM. It seems quite a few people have this problem, i don't know what the cause is, i have port forwarded, have mysql up and running and have modified the subnet, map and char conf files, as well as the clientinfo in my data folder. When i try to connect it just says failed to connect. Can anyone explain or give a solution?

Thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

try to turn off your firewall in windows or iptable in linux. I think its a port problem

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/07/12
  • Last Seen:  

Not a firewall problem, just turned it off and ran it, no server console errors but still couldn't connect to the server.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

post your char_athena and map_athena configs

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/07/12
  • Last Seen:  

Still having the problem, don't know why though.

Here are screenies of my map_athena, char_athena, subnet_athena and clientinfo

The first 3 are the only 3 files i have edited serverside.

post-1344-0-66533700-1327520772_thumb.jpg

post-1344-0-99390500-1327520775_thumb.png

post-1344-0-29021300-1327520785_thumb.jpg

post-1344-0-25555900-1327520790_thumb.jpg

post-1344-0-34775300-1327520796_thumb.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

Try with a different map port since this kind of errors it's common when socket already in use.

netstat -na

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

Please use the following first and then tell us if this worked.

conf/char_athena.conf

login_ip: 127.0.0.1
char_ip: 127.0.0.1

conf/map_athena.conf

char_ip: 127.0.0.1
map_ip: 127.0.0.1

conf/login_athena.conf

// SQL
account.sql.db_hostname: 127.0.0.1
account.sql.db_port: 3306
account.sql.db_username: <Your DB ID>
account.sql.db_password: <Your DB Pass>
account.sql.db_database: <Your DB>
//account.sql.codepage:
account.sql.case_sensitive: no
account.sql.account_db: login
//account.sql.accreg_db: global_reg_value

search your clientinfo.xml and replace with these values

<address>127.0.0.1</address>

and see if everything will work as intended. IF it did work change these values.

conf/char_athena.conf

login_ip: 127.0.0.1
char_ip: WAN IP/No-IP

conf/map_athena.conf

char_ip: 127.0.0.1
map_ip: WAN IP/No-IP

Make sure after you do the port forward thingy, reboot your router PROPERLY else the changes

will be undone and reverted back.

Edited by Magnetix
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/07/12
  • Last Seen:  

@magnetix will try this ina bit, gotto go to school.

Here is a picture of my port forwarding screen

post-1344-0-71386400-1327564170_thumb.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  162
  • Reputation:   3
  • Joined:  01/23/12
  • Last Seen:  

i think its your map_ip, try to change it to your lan ip and not the wan ip for you are just in a testing stage.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

No,no. You got it wrong... For your local IP address, it is wrong to use your Router's Address.. It should be

the IP of the machine itself... Open your command prompt and type ipconfig and then use the ip from IP Address.

usually its 192.168.1.2 or 192.168.0.2

and btw try the configs I posted above.

Edited by Magnetix
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/07/12
  • Last Seen:  

Just did it with your first settings, all good. Gotta try it with the second one. If it doesn't work i'll try changing the local ip address on the port forward settings.

Update: Amazing! When i changed my settings to what you said it worked magically! Got to check whether it works on a different machine, which shouldnt be a problem as its on a usb drive. Although do i need to change anything when i distribute the cleint files?

Thanks for all your help!

Update 2: Just experimented putting my WAN ip into the clientinfo.xml instead of using 127.0.0.1 Once again couldn't connect. Going to try changing those port forward setting around.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

When you're playing on a same machine with your server, you should use 127.0.0.1 in clientinfo, else you won't be able to connect.

Now if the machine is in the same network as the server use LAN/WAN, and for people who are outside your network, use WAN.

In port forward, local IP should ALWAYS contain the LAN IP of the machine your server running.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/07/12
  • Last Seen:  

Wow thanks a lot man, you're a real help!

Finally can begin distubiting this to my friends!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

Wow thanks a lot man, you're a real help!

Finally can begin distubiting this to my friends!

Np, glad to help a fellow newbie.. /ok

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/07/12
  • Last Seen:  

Unfortuanatley i have ran across another problem. My IP keeps changing, so i've made an acount and host thing on no-ip and have downloaded the program, but i don't know what i should type in my conf files to replace the WAN IP. My username is hatedigi and the domain name i picked was no-ip.info

Thanks in advance

Update: solved, managed to find the answer through google.

Link to comment
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.   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.

×
×
  • Create New...