Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Tutorials/Howto's > Tutorials--Outdated Use the Wiki > Tutorials::Discussion

Tutorials::Discussion Discuss Tutorials here. Do NOT POST tutorials here, they belong on the wiki.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2004, 06:27 AM
Doodman's Avatar
Doodman
Developer
 
Join Date: Aug 2003
Posts: 246
Default HOWTO: Play on your own server behind NAT

The reason that this does not normally work, is that most routers will not forward packets to through the external address when coming from inside the router. To get around this you can do a DNS "trick".

First, you will need a DNS name for your external IP. Either use the one your ISP gives you or go register one at dyndns.org or somesuch place.

Let's use these numbers for this example:
External IP: 1.2.3.4
External DNS name: 1-2-3-4.myisp.com
Internal IP of EQEMu server host: 192.168.1.100

In you servers LoginServer.ini, use the external DNS name for your world address:
Code:
...
worldaddress=1-2-3-4.myisp.com
...
boot5zones.bat (or whatever)
Code:
zone.exe . 1-2-3-4.myisp.com 7001 192.168.1.100
That takes care of the server, nothing out of the ordinary there. Here comes the "trick" part:

On the machine you play eq from, put a hosts file (\windows\system32\drivers\etc\hosts) entry that points your external DNS name to the internal IP address of your server.
Code:
192.168.1.100    1-2-3-4.myisp.com
Then, when the loginserver and world tell your client to connect to 1-2-3-4.myisp.com, it will look up the address (first trying the hosts file and -then- using DNS) and will find the address of 192.168.1.100 instead of 1.2.3.4.

All should be fine from then.

NOTE: This does NOT work with the 5996 loginserver. It has some code in it that uses the IP as part of the hand off to world. And because one is behind your router and one is not, the loginserver and world will see you coming from different IP addresses and world will not let you log in. The fix? Use the 5994 loginserver.
Reply With Quote
  #2  
Old 10-06-2004, 08:53 AM
onejessman
Sarnak
 
Join Date: Oct 2003
Posts: 68
Default

Quote:
That takes care of the server, nothing out of the ordinary there. Here comes the "trick" part:

On the machine you play eq from, put a hosts file (\windows\system32\drivers\etc\hosts) entry that points your external DNS name to the internal IP address of your server.
whats a host file and how to u create it like eqhost.ini or w/e it says[/quote]
Reply With Quote
  #3  
Old 10-06-2004, 09:46 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Quote:
Originally Posted by onejessman
whats a host file and how to u create it like eqhost.ini or w/e it says


In Doodman's example, assuming you have added no other entries, your host file would look something like this:

Code:
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1            localhost
192.168.1.100    1-2-3-4.myisp.com
Reply With Quote
  #4  
Old 10-09-2004, 01:59 PM
bobby15
Fire Beetle
 
Join Date: Oct 2004
Posts: 12
Default

So lets say my external ip is 222.333.444.555? and lets say my isp is blabla.net? Would i put 222.333.444.555.blabla.net then 192.168.100 (internal ip) as the host.?

EDIT: And in my loginserver.ini and boot5zones would i put just 222.333.444.555.blabla.net?
Reply With Quote
  #5  
Old 11-06-2004, 05:49 PM
Laviathon
Sarnak
 
Join Date: Aug 2003
Location: NY
Posts: 78
Default

ok when i altered this file i was unable to overwrite it so i have to make a host.txt file is this what i am to do ?

or is there a way to overwrite it that way i know the altered one is getting read

thank you
__________________
Reply With Quote
  #6  
Old 11-13-2004, 03:06 AM
lordkazan
Fire Beetle
 
Join Date: Nov 2004
Posts: 11
Default

Quote:
Originally Posted by Laviathon
ok when i altered this file i was unable to overwrite it so i have to make a host.txt file is this what i am to do ?

or is there a way to overwrite it that way i know the altered one is getting read

thank you
you have to edit the hosts file - [windir]\system32\drivers\etc\hosts - otherwise it has no effect

if you cannot overwrite this file you're not logged in under an administrator account - and you must be because this is a administrative settings file
Reply With Quote
Reply


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 01:45 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