Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-03-2010, 09:29 AM
orkim
Sarnak
 
Join Date: Sep 2008
Location: -
Posts: 31
Default

You pretty much got it there Mirakus.

One note I will add, is "adding your ip to the top of the config file" portion from above.

Typically when the world server connects to the login server it will save the IP address from which the world server connected. Say, world server at 1.2.3.4 connects to login server at 4.3.2.1, therefor the login server knows the public IP address of the world server.

However, when you run both on the same machine (or within a LAN and desire outside connections) this can be a bit tricky. Local LAN + outside connections typically runs into some routing problems (i.e. route the internal LAN packets properly using internal addresses and still listen/respond to external addresses). If you're not concerned about external connections (i.e. from the internet) then you have a easier job. But I digress...

Here in lies the rub, the login server will not know the public/private IP address to which it should use to connect to the world server. This is why when you are running the login server and world server on a single machine you MUST set these fields. Otherwise the 'IP' gets recorded as 127.0.0.1 and all clients are then routed back to themselves (127.0.0.1) to look for the worldserver, which of course isn't there.

As clear as mud?

Hope that helps.

-ork
Reply With Quote
  #2  
Old 06-05-2010, 01:54 PM
Jster22
Fire Beetle
 
Join Date: Jun 2008
Location: Earth
Posts: 26
Default

Thanks for the replies Mirakus and orkim.

In my login_util>linux there are the folders fedora-12-64, gentoo32, and ubuntu-9-10-32. I chose ubuntu. I moved the files into EQEmuLoginServer and ran make. I believe it built ok this time.
Quote:
gcc -o EQEmuLoginServer Client.o ClientManager.o Config.o DatabaseMySQL.o ErrorLog.o Main.o ServerManager.o WorldServer.o .obj/BasePacket.o .obj/Condition.o .obj/CRC16.o .obj/crc32.o .obj/debug.o .obj/emu_opcodes.o .obj/EmuTCPConnection.o .obj/EmuTCPServer.o .obj/EQPacket.o .obj/EQStream.o .obj/EQStreamFactory.o .obj/logsys.o .obj/logsys_eqemu.o .obj/misc.o .obj/MiscFunctions.o .obj/Mutex.o .obj/opcodemgr.o .obj/packet_dump.o .obj/packet_functions.o .obj/rdtsc.o .obj/TCPConnection.o .obj/TCPServer.o .obj/timeoutmgr.o .obj/timer.o .obj/unix.o -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -O -g -march=i686 -pthread -pipe -DEQLAUNCH -DEQDEBUG=5 -I/usr/include/mysql -DBIG_JOINS=1 -fPIC -rdynamic -L. -lstdc++ -ldl -L/usr/lib/mysql -lmysqlclient -lEQEmuAuthCrypto -lcryptopp
Reading the eqemu_config.xml configuration guide, it says the file should be located in world/eqlaunch/zone. However, I found my file in projecteqemu/utils/defaults. Is this ok?

My goal is to open this server up for my friends to log on to. They live in different cities so I wont be connecting using LAN. Is there an easy way to find your WAN ip? I just went to whatismyip.com and put that value in for both <address> and <localaddress>. Or does localaddress need to be 127.0.0.1? Following the guide, this is my eqemu_config.xml file currently
Code:
<?xml version="1.0">
<server>
        <world>
                <shortname>setme</shortname>
                <longname>I Forgot To Edit My Config</longname>
                <address>(whatismyip.com)</address>
                <localaddress>(whatismyip.com)</localaddress>
                <key>some long random string</key>
        </world>
        <database>
                <host>localhost</host>
                <port>3306</port>
                <username>eq</username>
                <password>eq</password>
                <db>eq</db>
        </database>
</server>
I don't have a database set up yet. I am having problems installing mysql. I install it using the command "apt-get install mysql-server" but when I type "mysql -u root" to set up the root account, I get this error "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)". How do I completely remove mysql-server and start again? Or is there another way to fix this?

I will work on login.ini after I have eqemu_config.xml configured and mysql working.

Thanks again for your help. I am looking forward to getting this running!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:16 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3