EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Set up private server for small number of other connections usin minilogin (https://www.eqemulator.org/forums/showthread.php?t=34939)

Sourdough35 02-19-2012 12:29 AM

Set up private server for small number of other connections usin minilogin
 
I'm currently running my own offline portable server. All settings in the config point to 127.0.0.1 or to localhost. It runs fine, but I also want to set it up so a small number of people can connect from other sources, but I don't want to open it up as a server everyone can connect to. Is there a way to set this up?

my eqemu_config.xml is this:

<?xml version="1.0"?>
<server>
<world>
<shortname>Offline</shortname>
<longname>Everquest Offline</longname>

<!-- address has to be specified for minilogin to work -->
<address>localhost</address>
<localaddress>localhost</localaddress>

<!-- Loginserver information. -->
<loginserver>
<host>localhost</host>
<port>5999</port>
<account></account>
<password></password>
</loginserver>

<!-- Sets the shared key used by zone/launcher to connect to world -->
<key>make up some random string of characters here</key>

<!-- Enable and set the port for the HTTP service -->
<http port="9080" enable="true" mimefile="mime.types"/>
</world>

<!-- Database configuration, replaces db.ini -->
<database>
<host>localhost</host>
<port>3306</port>
<username>root</username>
<password>password</password>
<db>peq</db>
</database>
</server>


and my loginserver.ini looks like this:

### --- This file tells world.exe what loginserver to connect to.
### --- Leave the account and password field BLANK.

### --- Public Login is un-supported as is LAN playing. We reccomend using the EQEmu.net Loginserver ALWAYS.

### --- NOTE: Starting 6-1-2002, you can no longer use the word "Server" in worldname.
### --- NOTE2: the word "Server" is added to each server automaticly.

# READ README.TXT

[LoginServer]
loginserver=localhost
loginport=5999
worldname=Offline
worldaddress=localhost
locked=true
account=
password=

[WorldServer]
Defaultstatus=
Unavailzone=

[ChatChannelServer]
worldshortname=
chataddress=
chatport=

[LoginConfig]
ServerMode=StandAlone
ServerPort=5999



Suggestions?

Noport 02-19-2012 12:33 PM

Click on url and follow Vales guide http://www.eqemulator.org/forums/showthread.php?t=29043 and Good Luck!

Start at Step # 1 - #3 if you have not downloaded the server files.

Just a Note: if you already donwloaded the server files under trunk\EQEmuServer\EQEmuLoginServer\login_util directory is the files you need for your sql server database.
Start at Step # 9: - #18

loginserver.ini needs to look like this:
Code:

[LoginServer]
loginserver=localhost
loginport=5999
worldname=Everquest Offline
worldaddress=localhost
locked=true
account=
password=


[WorldServer]
Defaultstatus=
Unavailzone=
 

[ChatChannelServer]
worldshortname=Offline
chataddress=
chatport=

 
[LoginConfig]
ServerMode=StandAlone
ServerPort=5999

Code:

Only If using Winxp:
Goto Network Connection Properties
You'll Be at General
Click on Advanced
Click Settings
Leave Firewall ON
Click Exceptions
Click Add Port
Click Change scope
Any Computer [Including those on the Internet]
Click Ok
Name: EqEmuloginServer
Port number: 5999 UDP
Click Ok
Click Add Port
Click Change scope
Any Computer [Including those on the Internet]
Click Ok
Name: EqEmuloginServer
Port number: 5998 UDP
Click Ok
That should now allow other computers
on your local network to connect to your server.


Sourdough35 02-19-2012 04:37 PM

The difficult part is setting up eqemu_config.xml, especially where it asks for server addresses.

<address>server.dyndns.org</address>
<localaddress>192.168.0.1</localaddress>

How do I figure out the address? I don't pay for a dynamic DNS service, so I don't think I have one. My actual IP I'm not sure of either.


<loginserver>
<host>server.dyndns.org</host>
<port>5998</port>
<account></account>
<password></password>
</loginserver>


It comes up again there. Not sure what my Dynamic DNS is supposed to be, but I imagine if I don't pay for one, I don't have one. Is there some other number I can put in?

lerxst2112 02-19-2012 04:42 PM

http://www.whatismyip.com/

sorvani 02-19-2012 05:11 PM

Did you even bother to google dynamic DNS? Go do that, set it up, and come back.

Sourdough35 02-19-2012 07:21 PM

I did, but it looks like you need to pay a service provider to obtain one. I'm wondering if there is another way. Looking again, I do see free dynamic DNS providers. Will try that and report back.

pfyon 02-19-2012 11:28 PM

dyndns.com is who I use.

Noport 02-20-2012 05:07 AM

yes you can use your network ip some setup network address as 192.168.0.1 or 192.168.1.1 just an example only. I don't know what os your running type in run command or dos prompt ipconfig /all hit the enter key. I'm a CNA & CNE and a computer tech i setup and install networks in schools & casinos and million dollar companies. www.netsol.com is the main provider for all dns , might look at www.dynip.com you can use it for free for 30 days its based out of canada.

Example Only

Code:

<address>192.168.0.1</address>
 <localaddress>127.0.0.1</localaddress>

<loginserver>
 <host>server.dyndns.org</host>
 <port>5998</port>
 <account></account>
 <password></password>
 </loginserver>


Noport 02-20-2012 06:24 AM

For host you can use your real ip most have Dynamic IP stands for changing ip address.
Example here you go sorry just seen the other host address just use this one it's free and you'll never have to worry about your ip address changing.
Code:

<address>192.168.0.1</address>
 <localaddress>127.0.0.1</localaddress>

<loginserver>
 <host>192.168.0.1</host>
 <port>5998</port>
 <account></account>
 <password></password>
 </loginserver>


Harcourt 02-20-2012 01:30 PM

Private network addresses, such as 192.168.0.1, are by design NOT routed over the internet. Routers drop packets destined for these addresses.

If you think about it for a second... If 10 people use 192.168.0.1, which machine should a packet go to?

If you have an internet connection, you have a real ip. If it is dynamic, it will change from time to time. But it is not unusual for someone to keep an address for a month.

Noport 02-20-2012 06:24 PM

no internet conection required lan play only

This is my eqemu_config
Code:

<?xml version="1.0">
<server>
        <world>
                <!-- Set the shortname to ONE word. The longname is what shows up on server list -->
                <shortname>VoA</shortname>
                <longname>Veil of Alaris</longname>

                <!-- DO NOT EDIT ANY LINES BETWEEN HERE AND THE DATABASE SECTION -->
                <address>192.168.0.10</address>
                <localaddress>127.0.0.1</localaddress>

                <!-- Loginserver information.  DO NOT EDIT -->
                <loginserver>
                        <host>192.168.0.10</host>
                        <port>5999</port>
                        <account>xxxxxxxxxxx</account>
                        <password>xxxxxxxxxx</password>
                </loginserver>

                <!-- Server status.  Default is unlocked DO NOT EDIT RIGHT NOW -->
                <!--<locked/>-->
                <!-- <unlocked/> -->

                <!-- Sets the ip/port for the tcp connections.  DO NOT EDIT -->
                <tcp ip="localhost" port="9000" telnet="disable"/>

                <!-- Sets the shared key used by zone/launcher to connect to world -->
                <key>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</key>
               
                <!-- Enable and set the port for the HTTP service.  Defaults are shown -->
                <http port="9080" enabled="false" mimefile="mime.types" />
        </world>

        <!-- Chatserver (channels) information.  DO NOT EDIT -->
        <chatserver>
                <host>192.168.0.10</host>
                <port>7778</port>
        </chatserver>

        <!-- Mailserver (in-game mail) information.  DO NOT EDIT -->
        <mailserver>
                <host>192.168.0.10</host>
                <port>7779</port>
        </mailserver>
       
        <zones>
                <!-- The defaultstatus is what status the new toons will have on your server -->
                <defaultstatus>0</defaultstatus>

                <!-- Sets port range for world to use to auto configure zones DO NOT EDIT RIGHT NOW-->
                <ports low="7000" high="7100"/>
        </zones>

        <!-- Set username to root and password is your MySQL password and db to peq -->
        <database>
                <host>localhost</host>
                <port>3306</port>
                <username>root</username>
                <password>xxxxxxxxxxxxx</password>
                <db>peq</db>
        </database>

        <!-- Launcher Configuration DO NOT EDIT-->
        <launcher>
                <!-- <logprefix>logs/zone-</logprefix> -->
                <!-- <logsuffix>.log</logsuffix> -->
                <!-- <exe>zone.exe</exe> -->
                <!-- <timers restart="10000" reterminate="10000"> -->
        </launcher>

        <!-- File locations.  DO NOT EDIT -->
        <files>
                <!-- <spells>spells_us.txt</spells> -->
                <!-- <opcodes>opcodes.conf</opcodes> -->
                <!-- <logsettings>log.ini</logsettings> -->
                <!-- <eqtime>eqtime.cfg</eqtime> -->
        </files>
        <!-- Directory locations.  DO NOT EDIT -->
        <directories>
                <!-- <maps>Maps</maps> -->
                <!-- <quests>quests</quests> -->
                <!-- <plugins>plugins</plugins> -->
        </directories>
</server>

This is my login.ini

Code:

[database]
host = localhost
port = 3306
db = peqlogindb
user = root
password = xxxxxxxxxxx
subsystem = MySQL

[options]
unregistered_allowed = TRUE
reject_duplicate_servers = FALSE
trace = TRUE
world_trace = FALSE
dump_packets_in = FALSE
dump_packets_out = FALSE
listen_port = 5999
local_network = 192.168.0.10

[security]
plugin = EQEmuAuthCrypto
mode = 5

[Titanium]
port = 5998
opcodes = login_opcodes.conf

[SoD]
port = 5999
opcodes = login_opcodes_sod.conf


[schema]
account_table = tblLoginServerAccounts
world_registration_table = tblWorldServerRegistration
world_admin_registration_table = tblServerAdminRegistration
world_server_type_table = tblServerListType

Code:

[Debug] [02.20.12 - 15:39:27] Logging System Init.
[Debug] [02.20.12 - 15:39:27] Config System Init.
[Debug] [02.20.12 - 15:39:27] MySQL Database Init.
[Debug] [02.20.12 - 15:39:27] Encryption Initialize.
[Debug] [02.20.12 - 15:39:27] Encryption Loaded Successfully.
[Debug] [02.20.12 - 15:39:27] Server Manager Initialize.
[Network] [02.20.12 - 15:39:27] ServerManager listening on port 5999
[Debug] [02.20.12 - 15:39:27] Client Manager Initialize.
[Network] [02.20.12 - 15:39:27] ClientManager listening on Titanium stream.
[Network] [02.20.12 - 15:39:27] ClientManager listening on SoD stream.
[Debug] [02.20.12 - 15:39:27] Server Started.
[Network] [02.20.12 - 15:40:00] New world server connection from 192.168.0.10:63486
[World] [02.20.12 - 15:40:00] Server Veil of Alaris(VoA) successfully logged in.


Noport 02-20-2012 07:35 PM

Quote:

Originally Posted by Harcourt (Post 207425)
Private network addresses, such as 192.168.0.1, are by design NOT routed over the internet. Routers drop packets destined for these addresses.

If you think about it for a second... If 10 people use 192.168.0.1, which machine should a packet go to?

If you have an internet connection, you have a real ip. If it is dynamic, it will change from time to time. But it is not unusual for someone to keep an address for a month.

That is not the case if you use a router on your network so each computer has a different ip address or goto control pannel network and config a unique ip address for each computer I'm a computer tech trust me.

lerxst2112 02-20-2012 07:42 PM

http://en.wikipedia.org/wiki/IP_addr...vate_addresses

sorvani 02-20-2012 11:11 PM

All of the bullshit above aside. As noted dyndns.org offers free Dynamic DNS service. Your home router also most likely already supports said service. Sign it up, setup your router to keep it updated for you.

Have your friends enter YOUR dyndns hostname in their eqhost.txt file. They should then be able to connect assuming you have all the ports forwarded through your router correctly. and have THEIR IP information put in your minilogin.

Caryatis 02-20-2012 11:15 PM

Or just dont use the retardation known as minilogin, you can lock a public server you know.

sorvani 02-21-2012 03:58 AM

well that is a given.

trevius 02-21-2012 04:43 AM

Noport,

The information you provided may be good for someone only wanting to play within their own LAN, but here is a quote from the Original Poster in the first post of this thread:

Quote:

Originally Posted by Sourdough35 (Post 207387)
It runs fine, but I also want to set it up so a small number of people can connect from other sources, but I don't want to open it up as a server everyone can connect to.

If he uses 192.168.x.x address space, others outside of his LAN will never be able to connect as those are not publicly routed IP addresses as I am sure you are aware. So, the information you provided is not relevant for this particular thread. I think you may have just missed that part of his post and thought he was trying to setup a LAN only server like you run.

And yes, the best solution is to use dyndns.com with EQEmuLoginServer or to just make it a public server and restrict access, which is probably the easiest route to go.

Harcourt 02-21-2012 04:20 PM

I purchase a number of services from dyndns, and couldn't be happier. I use DDWRT on my router, and it works seamlessly with dyndns.

Sourdough35 02-21-2012 05:59 PM

Right. I actually like the minilogin a lot when I'm just running around offline by myself. It's actually the only way I've been able to get my own instance of the game up and running.

Not sure why I have so much trouble using the full EqEmuLogin server, but I'll try some of the suggestions above and see how it works out.

Caryatis 02-21-2012 06:41 PM

You don't need to run your own login server(most everybody else doesnt either). Run world and zone(through the bat file) and that is all you need.

Noport 02-22-2012 03:40 AM

I'm sure em glad to hear more good news like that Sourdough35 80)

Sourdough35 02-23-2012 09:57 PM

Ok I figured out how to login using the LoginServer. I can access the server on my local machine and on a lan connected computer. But I still can't connect outside of the lan.

eqemu_config.xml

<?xml version="1.0"?>
<server>
<world>
<shortname>Offline</shortname>
<longname>Everquest Offline</longname>

<!-- address has to be specified for minilogin to work -->
<address>192.168.1.100</address>
<localaddress>127.0.0.1</localaddress>

<!-- Loginserver information. -->
<loginserver>
<host>192.168.1.100</host>
<port>5998</port>
<account>Admin</account>
<password>Password</password>
</loginserver>

<!-- Sets the shared key used by zone/launcher to connect to world -->
<key>make up some random string of characters here</key>

<!-- Enable and set the port for the HTTP service -->
<http port="9080" enable="true" mimefile="mime.types"/>
</world>

<!-- Database configuration, replaces db.ini -->
<database>
<host>localhost</host>
<port>3306</port>
<username>xxxx</username>
<password>xxxxxxxx</password>
<db>peq</db>
</database>
</server>

the login.ini is

[database]
host = localhost
port = 3306
db = PEQLoginDB
user = xxxx
password = xxxxxxxx
subsystem = MySQL

[options]
unregistered_allowed = TRUE
reject_duplicate_servers = FALSE
trace = TRUE
world_trace = FALSE
dump_packets_in = FALSE
dump_packets_out = FALSE
listen_port = 5998
local_network = 192.168.1.100
[security]
plugin = EQEmuAuthCrypto
mode = 5

[Titanium]
port = 5998
opcodes = login_opcodes.conf

[SoD]
port = 5999
opcodes = login_opcodes_sod.conf

[schema]
account_table = tblLoginServerAccounts
world_registration_table = tblWorldServerRegistration
world_admin_registration_table = tblServerAdminRegistration
world_server_type_table = tblServerListType

my eqhost.txt points to
xx.x.xx.xxx:5998


xx.x.xx.xxx is the actual ip address of my computer as revealed by a google search.

lerxst2112 02-23-2012 10:39 PM

Quote:

<!-- address has to be specified for minilogin to work -->
<address>192.168.1.100</address>
<localaddress>127.0.0.1</localaddress>
address should be your routable IP address that you would get from looking at your router, using whatismyip, etc., not a non-routable internal one.

localaddress might need to be your actual network card ip rather than localhost, although depending on how that;s used they may be equivalent. Either way, using 192.168.1.100 shouldn't hurt anything.

Sourdough35 02-24-2012 03:31 AM

Still no go

eqemu_config

<!-- address has to be specified for minilogin to work -->
<address>xx.x.xx.xxx</address>
<localaddress>192.168.1.100</localaddress>

<!-- Loginserver information. -->
<loginserver>
<host>192.168.1.100</host>
<port>5998</port>
<account>Admin</account>
<password>Password</password>
</loginserver>


login.ini

[database]
host = localhost
port = 3306
db = PEQLoginDB
user = xxxx
password = xxxxxxxx
subsystem = MySQL

[options]
unregistered_allowed = TRUE
reject_duplicate_servers = FALSE
trace = TRUE
world_trace = FALSE
dump_packets_in = FALSE
dump_packets_out = FALSE
listen_port = 5998
local_network = 127.0.0.1

[security]
plugin = EQEmuAuthCrypto
mode = 5

[Titanium]
port = 5998
opcodes = login_opcodes.conf

[SoD]
port = 5999
opcodes = login_opcodes_sod.conf

[schema]
account_table = tblLoginServerAccounts
world_registration_table = tblWorldServerRegistration
world_admin_registration_table = tblServerAdminRegistration
world_server_type_table = tblServerListType


eqhost points to xx.x.xx.xxx:5998

Should I not be trying this from within my lan? Does it only work from an outside computer?

Noport 02-24-2012 07:16 AM

Code:

If you don't have a Ls account please get one or more if needed!
Goto http://www.eqemulator.org/forums/profile.php?do=loginserver
Note: you should see a numbers all numbers xxxxxx wright it down so you can remember them.
Goto peq database account under the users name you'll see Isaccount_Id put in the xxxxxxx numbers from eqemulogin server
Change veriables in database to Public
Must use EQEmuLoginServer.exe for this to work online.
Look for your Server to be listed at http://www.eqemulator.org/index.php?pageid=serverlist
Login using your client change your eqhost.txt eqemulator.net:5998
put in your lsaccount you just created username and password into client and login so you can see all the other servers on the list and you should see your server.
you can now connect to your server online.

you said, eqhost points to xx.x.xx.xxx:5998 Should I not be trying this from within my lan? Does it only work from an outside computer?
If it's not broke don't fix it . If your server see a newer clinet it will use port 5999 for them. 
use what ever works out best for you and your family.

eqemu_config.xml

<?xml version="1.0">
<server>
        <world>
                <shortname>Offline</shortname>
                <longname>Everquest Offline</longname>

                <!-- Only specify these two if you really think you need to.  (read: You don't) -->
                <address></address>
                <localaddress></localaddress>

                <!-- Loginserver information.  Defaults shown -->
                <loginserver>
                        <host>eqemulator.net</host>
                        <port>5998</port>
                        <account></account>
                        <password></password>
                </loginserver>

                <!-- Server status.  Default is unlocked -->
                <!--<locked/>-->
                <!-- <unlocked/> -->

                <!-- Sets the ip/port for the tcp connections.  Both zones and console (if enabled).  Defaults are shown -->
                <tcp ip="localhost" port="9000" telnet="disable"/>

                <!-- Sets the shared key used by zone/launcher to connect to world -->
                <key>xxxxxxxxxxxxxxxxxxxxxxx</key>
               
                <!-- Enable and set the port for the HTTP service.  Defaults are shown -->
                <http port="9080" enabled="false" mimefile="mime.types" />
        </world>

        <!-- Chatserver (channels) information.  Defaults shown -->
        <chatserver>
                <host>channels.eqemulator.net</host>
                <port>7778</port>
        </chatserver>

        <!-- Mailserver (in-game mail) information.  Defaults shown -->
        <mailserver>
                <host>channels.eqemulator.net</host>
                <port>7779</port>
        </mailserver>

        <zones>
                <defaultstatus>20</defaultstatus>

                <!-- Sets port range for world to use to auto configure zones -->
                <ports low="7000" high="7100"/>
        </zones>

        <!-- Database configuration, replaces db.ini.  Defaults shown -->
        <database>
                <host>localhost</host>
                <port>3306</port>
                <username>root</username>
                <password>xxxxxxxxxxxxx</password>
                <db>peq</db>
        </database>

        <!-- Launcher Configuration -->
        <launcher>
                <!-- <logprefix>logs/zone-</logprefix> -->
                <!-- <logsuffix>.log</logsuffix> -->
                <!-- <exe>zone.exe or ./zone</exe> -->
                <!-- <timers restart="10000" reterminate="10000"> -->
        </launcher>

        <!-- File locations.  Defaults shown -->
        <files>
                <!-- <spells>spells_us.txt</spells> -->
                <!-- <opcodes>opcodes.conf</opcodes> -->
                <!-- <logsettings>log.ini</logsettings> -->
                <!-- <eqtime>eqtime.cfg</eqtime> -->
        </files>
        <!-- Directory locations.  Defaults shown -->
        <directories>
                <!-- <maps>Maps</maps> -->
                <!-- <quests>quests</quests> -->
                <!-- <plugins>plugins</plugins> -->
        </directories>
</server>


Noport 02-24-2012 09:55 AM

question Sourdough35 what server Rev are you using ?

Sourdough35 02-24-2012 10:35 AM

2098 with bots. Trying to use eqemuliginserver without making it public.

Noport 02-24-2012 10:36 AM

before you compile the server code goto common EQEmuConfig.h and change the server to your current ip address or dot.com etc if you wish replace with real ip address where it says eqemulator.net then use my example above with your real ip address or dot.com http://www.whatismyip.com/ you can try and put your real ip address in there and see if that works for you first before going throw all that trouble. I understand that you don't want to make it public for everyone , this away you'll be able to tell all your friends your ip address or dot.com to connect to your server only. I understand you and your wife want restricted content do to childern or kids etc playing on your network.

Sourdough35 02-24-2012 12:22 PM

I've never actually compiled my server before, I've just used the most up to date binaries. Is that necessary to run your own small private? If so, I'll try that out.

And there's no wife or kids in this scenario. I'm just not interested in using the public server option. I want something I can download, pass to friends, and be totally independent on connections to other services beyond basic internet.

Noport 02-24-2012 11:02 PM

I haven't tried that was just and idea is all i was just kicking the can around .


All times are GMT -4. The time now is 02:11 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.