![]() |
|
Allow REMOTE ACCESS to your server!!!! - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Off-Topic (The Outer World) (https://lckb.dev/forum/forumdisplay.php?fid=198) +---- Forum: General Discussion (https://lckb.dev/forum/forumdisplay.php?fid=147) +---- Thread: Allow REMOTE ACCESS to your server!!!! (/showthread.php?tid=13) Pages:
1
2
|
- Cruzaders - 06-19-2011 OMG, You wont belive me. I found a way to connect from a remote computer! This is the proof: (im Heroes and using Hamachi, FelipeM is my cousin) I seriously dont understand those things u do, or even create a sql, so i have no idea wth i did to allow another computer connect to my server. I did many things so i will tell everything i did. 1) Open: X:\xampp\mysql\bin my.ini Go to the end of the document and add this line: bind-address=0.0.0.0 Save and restart your apache and mysql 2) Go to windows firewall and add all doors and also to your modem: 3306* 80* 8080 4110 4101 (I dont know the difference between TCP and UDP, incoming, so added to all and always giving permissions) * = important 3) Connect to hamachi and open ur gamserver.cfg and loginserver.cfg and change 127.0.0.1 to ur hamachi ip. 4) Using the iptool (by wizatek) open your sl.dta and chage that ip to ur hamachis ip. Tell ur friend to replace that sl.dta and to connect to the same room on hamachi. DONE o.O As you can see, i have NO IDEA WTH i did. Seriously. But worked, and this is the important thing. - Wizatek - 06-19-2011 Verry nice Cracker! Great job! But, i think just part 2 would already have done it ![]() Basicly 3306 and 80 are both ports not needed by the game. 3306 not because the emulator uses localhost to connect to the mySQL server. 80 not because its only used for phpmyadmin The client will never connect directly to the mySQL server nor will it connect to the Apache webserver. 4101 and 4110 are important. both TCP Now that u have that settings Try in your modem/router to map those ports to your network ip adress (probably 192.168.[CeNsOrEd].[CeNsOrEd]) with NAT Once that is done u can bind to your network ip adress or your external ip adress without using Hamachi. Normally that should work as the emulator does not block any traffic, its purely the settings of your pc / modem - Cruzaders - 06-19-2011 Isnt port 80 blocked by default? PS: gameserver is crashing >.< - Cruzaders - 06-19-2011 You are asking too much wizatek >. - Wrong - 06-19-2011 OMG, You wont belive me. I found a way to connect from a remote computer! This is the proof: (im Heroes and using Hamachi, FelipeM is my cousin) I seriously dont understand those things u do, or even create a sql, so i have no idea wth i did to allow another computer connect to my server. I did many things so i will tell everything i did. 1) Open: X:\xampp\mysql\bin my.ini Go to the end of the document and add this line: bind-address=0.0.0.0 Save and restart your apache and mysql 2) Go to windows firewall and add all doors and also to your modem: 3306* 80* 8080 4110 4101 (I dont know the difference between TCP and UDP, incoming, so added to all and always giving permissions) * = important 3) Connect to hamachi and open ur gamserver.cfg and loginserver.cfg and change 127.0.0.1 to ur hamachi ip. 4) Using the iptool (by wizatek) open your sl.dta and chage that ip to ur hamachis ip. Tell ur friend to replace that sl.dta and to connect to the same room on hamachi. DONE o.O As you can see, i have NO IDEA WTH i did. Seriously. But worked, and this is the important thing. If you want to connect to my server using hamachi: room: heroes2057 pw: 123 Put this file in ur 777 main folder. 2 i dont undesttand the 1st step - Cruzaders - 06-19-2011 i dont undesttand the 1st step Just add a new line anywhere on that document To connect to my server: Network: heroes2057 pw: 123 Download 2 Replace in ur 777 main folder - Weedie - 06-20-2011 My own network...Crash proof (well sorta)... Network name: WizEP2Net Pass: emu123 - Sutz - 06-20-2011 I dont understand why your all using ham lol just goto your router an open ports 4101 and 4110 TCP an point them to your local IP (NAT) then setup a DNS an give ppl the DNS that points to your IP edit sl.dat an put in your DNS an you should be able to connect from anywhere outside your network. - Wrong - 06-20-2011 it doesnt work max, it only conects to the loginserver by doing that, I think there must be another file to edit on the cleint to allow other ppl to coenct to the game server, my friend was able to conect to my loginserver, when he logged in a message also appeared in my login server saying that the login was succes but he wasnt able o conect to the game server - Sutz - 06-20-2011 Ill have a play with it an see whats going on. ------------[ little time later ]--------------------- Ok after testing and getting the same problem you said I fix it an got connected an logged in via my WAN IP =D How to do it: Open & port forward ports 4101 & 4110 TCP to your current LAN ip that the server is running on, in my case my LAN ip is "192.168.0.50" Here are my settings: LoginServer.cfg #SERVER IP=192.168.0.50 PORT=4101 #MYSQL SQL_HOST=localhost SQL_DBASE=lcep2 SQL_USER=root SQL_PASSWORD= #GAMESERVER GS_IP=192.168.0.50 GS_PORT=4110 GS_CHANNELS=1 GS_TYPE=1 #LOGIN SERVER OPTIONS AUTO_ACCOUNT_CREATION=TRUE GameServer.cfg ## GAMESERVER IP=192.168.0.50 PORT=4110 ## MYSQL SQL_HOST=localhost SQL_DBASE=lcep2 SQL_USER=root SQL_PASSWORD= ## RATES EXP_RATE=1 SP_RATE=1 DROP_RATE=1 Now all incoming connections from my WAN (Internet IP) will get routed to 192.168.0.50:4101 (Login server) then once I login the login server will then move me to 192.168.0.50:4110 (game server). ;-------------------------------------------------------------------------- Someone try to connect to my server.. I need to see if its really working. sl.dat = gaz.selfip.net Or download my pre-edited sl.dat: 2 Accounts is on auto so when you login it will auto make ur account ![]() |