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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-27-2004, 02:10 AM
Muuss
Dragon
 
Join Date: May 2003
Posts: 539
Default Updated boot5zones

As I m bored at work, i modified my boot5zones.bat file to automatically detect my external ip address. It changes each time i connect my box to internet.

Don't write that code, COPY PASTE it or you may forget some backquotes
Code:
@echo off

REM >> Update INTERNAL_IP with the IP address used by YOUR server on YOUR lan
set INTERNAL_IP=192.168.0.2

if NOT exist spells_en.txt goto NOSPELL

for /f "tokens=1-7 usebackq delims=:. " %%a in (`ipconfig ^| find "IP" ^| find "ress" ^| find /v "0.0.0.0" ^| find /v "%INTERNAL_IP%"`) do set EXTERNAL_IP=%%d.%%e.%%f.%%g
echo External ip for this system is %EXTERNAL_IP%, internal is %INTERNAL_IP%

start zone . %EXTERNAL_IP% 7995 %INTERNAL_IP%
start zone . %EXTERNAL_IP% 7996 %INTERNAL_IP%
start zone . %EXTERNAL_IP% 7997 %INTERNAL_IP%
start zone . %EXTERNAL_IP% 7998 %INTERNAL_IP%
start zone . %EXTERNAL_IP% 7999 %INTERNAL_IP%

exit
cls 

:NOSPELL
echo Copy spells_en.txt into that directory !
Please be aware that the row starting by for may not perfectly work on localized windows. Adapt it to yours :

type ipconfig on your computer, search the row showing your external ip address, then, modify the 'find' commands to select only that row.

Once done, modify the tokens=1-7 option and the %%c...%%f variables to catch the 4 numbers of your ip address.

If you do this in command line, use the single % syntax, not the double % one, IE :

for /f "tokens=1-7 usebackq delims=:. " %a in (`ipconfig ^| find "IP" ^| find "ress" ^| find /v "0.0.0.0"`) do set EXTERNAL_IP=%d.%e.%f.%g

Could someone confirm if this is working on a US windows (french one here) ?

Muuss
__________________
Muuss - [PEQGC] Dobl, the ogre that counts for 2 !
http://www.vilvert.fr/page.php?id=10
Reply With Quote
 

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 02:00 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