EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   ok so i have a networking problem I think. (https://www.eqemulator.org/forums/showthread.php?t=36030)

Davood 11-24-2012 02:08 PM

ok so i have a networking problem I think.
 
Here is the situation

I have a pretty beefy computer acting as the host - if i run eqemu, i can run it out of a vm successfully, even multiple VMs work sucessfully, but no configuration i've tried was able to let me run it from teh host itself?!?!?! wtf right?

here is the configuration

INTERNET -> (2 external ips) -> switch -> 2 routers -> 2 switches -> server (2 nics)

Server has 2 nics, and is connected to both external ips.
If I load two VMs and setup eqemu for each of the external ips, I can run two servers, players can connect to both and it all works great.

If I try and run one server off of the host directly, players are able to connect sometimes, but mostly I get a stream state closed, unable to identify connection before it closed type error messsages.

SOME people can still connect though, which makes it annoying, what is wrong? I don't know. The reason I want to run out of the host is that it seems that the VM is making looting lag really bad for some reason, but running off a "sortof stand alone" box and looting (and other stuff) is instant

If anyone has tips for optimizing my vm (or teachign my noober ass to use linux) that would probably be sufficient

my "server" is windows 7 ultimate, and the VMs ive been succesfull with are win xp 32bit and win7 64bit

Right now i am running the server from a computer that only has one nic and things are lightning fast, but i dont want the additional electricity usage.

trevius 11-24-2012 02:42 PM

So, you have 2 VMs each on the same server and with unique LAN addresses, and you also have a unique LAN address for the server itself?

I assume you are using port range forwarding in your routers to forward to your 2 VM addresses? You won't be able to run the 2 VMs and your server at the same time, as that would require 3 public addresses since you can only port forward to 1 address at a time per network. If you switch your port forwarding to point to your server on one of your networks, then it should work. You just won't be able to run both of your VMs at the same time as well.

Davood 11-24-2012 02:48 PM

i think I miscommunicated. (I am familiar with networking enough to know that i need an ext ip for each server)
2 vms running on server -> i kill one of them and use the external ip for host
i go to router config and reroute everything from that ext ip to the host local ip
unable to get that ip working for host with eqemu

that is the problem.

Davood 11-24-2012 02:50 PM

and as i said before SOME people can connect, it is not consistent, and not based on specific client, some SoF SoD and titanium peopel can connect and others cannot

trevius 11-24-2012 02:54 PM

I don't know why some would be able to connect and others not. It is the same network that was working for your VMs, so the only factors here are your network config (mainly port range forwarding), and your server config file. Maybe post your server config file (minus any passwords)? If you are setting the IP fields that have a comment above them not to change them, then that could definitely cause odd issues. I do networking for a living, so I am sure we can figure this out :)

Davood 11-24-2012 03:50 PM

Thanks for the offer of help

I work on databases and embarrassingly i don't know much about networking beyond some basic things i've tickled my way into.

Before we begin, I am using DD-WRT version 24-sp2 for my router

My server local lan address for the nic I want to use is
192.168.2.113

In my Router
The router ip address is
192.168.2.1

I have port forwarded the following
port 9000, 7778 to 192.168.2.113

I have port range forwarded the following to
Ports 7002 to 7500 to 192.168.2.113

My External Ip address for that adapter is:
173.34.35.197

Here is a copy (EDITED HEAVILY) of my server config.. minus some details like db name, users and passwords.

Code:

<?xml version="1.0">
<server>
        <world>
                <shortname>MDB</shortname>
                <longname>[FV] Alakamin -zTEST UNSTABLE CAN YOU CONNECT???</longname>
               
                <!-- Only specify these two if you really think you need to.  (read: You don't) -->
                <address>173.34.35.197</address>
                <localaddress>192.168.2.113</localaddress>

                <!-- Loginserver information.  Defaults shown -->
                <loginserver>
                        <host>eqemulator.net</host>
                        <port>5998</port>
                        <account>UNDISCLOSED</account>
                        <password>UNDISCLOSED</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="192.168.1.106" port="9000" telnet="enabled"/>

                <!-- Sets the shared key used by zone/launcher to connect to world -->
                <key>UNDISCLOSED</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>173.34.35.197</host>
                <port>7778</port>
        </chatserver>

        <!-- Mailserver (in-game mail) information.  Defaults shown -->
        <mailserver>
                <host>173.34.35.197v</host>
                <port>7778</port>
        </mailserver>

        <zones>
                <defaultstatus>0</defaultstatus>

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

        <!-- Database configuration, replaces db.ini.  Defaults shown -->
        <database>
                <host>192.168.2.113</host>
                <port>3306</port>
                <username>UNDISCLOSED</username>
                <password>UNDISCLOSED</password>
                <db>UNDISCLOSED</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>


Davood 11-24-2012 03:50 PM

I'm running a bunch of other stuff on there too, but none of it uses port 9000 and i have tried with none of it running.. i can list it all if you like.

Davood 11-24-2012 03:52 PM

i loaded the server so people can try and connect to it... ill be back in a few hours after i run some errands to try and resolve this.

thanks in advance for your help... you have been an outstanding member of the community i enjoy following your advice and faqs (I like to read faqs, i am not fond of committing the crime of PEBCAK if i can avoid it by RTFM).

Davood 11-24-2012 07:08 PM

whoops had the telnet / 9000 ip wrong in the pasted config. fixed it

i had pasted it in while i was editing and forgot to repaste because i was distracted.

trevius 11-25-2012 12:18 PM

Have you tried commenting these lines out?
Code:

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

Those aren't needed if you aren't running your own login server.

Also, you mentioned that you were using port forwarding for 9000 and 7778. You should only be using port range forwarding. Port forwarding is for forwarding 1 port to another, like if you wanted to convert port 9000 to port 21 or something. Port range forwarding is for forwarding a range of ports (or a single port) to a specific IP.

Davood 11-25-2012 12:39 PM

aha....

no im not using my own login server

ok... ill comment those two lines out and update the router to use port range forwarding

then ill see if people can connect.


thanks.

Davood 11-26-2012 04:59 PM

ok so now players trying to connect to teh test server are all unable to connect.

and on the server side, i am not seeing any error messages or connect messages.

trevius 11-27-2012 01:34 AM

You might want to check port 9000 and make sure it is pointed to the right IP on your 173.34.35.197 network. Since you have 2 NICs, maybe you have the wrong IP? Have you checked "ipconfig /all" from command prompt? I tried to connect to your test server with wireshark running and the sniffer log only showed my repeated connection attempts to your server on port 9000 with no response back.

lerxst2112 11-27-2012 02:32 AM

Seems like a simple test of disabling one network card and seeing if it works would narrow the problem down quite a bit.

Davood 11-27-2012 01:23 PM

Ok ill try disabling a nic. when i get home.. if that works.. which i hope it doesnt... then what do i do?
Also the ip settings all seem to be right. ill post them when i get home.


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

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