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

Archive::Windows Servers Archive area for Windows Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2002, 04:06 PM
raventy
Sarnak
 
Join Date: Oct 2002
Posts: 45
Default Joining server on network that has Internet Clients in it

I got another pc on my network and I was wondering if I can make it join my server while my server has clients from the internet in it? Like when I try to join my server through the LAN I get a 1017. I was wondering if its possible to make my pc join through the LAN to my server that has clients fromt he internet on it? Thanks.
Reply With Quote
  #2  
Old 11-02-2002, 12:05 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Yea, shouldnt be a problem, but here youre going to run into the NAT problem. EQEmu has a pretty goofy problem when dealing with a server running on your NAT/firewall machine. Do a search on NAT, you should find some solutions. The best solution is a code fix and compile, but theres a hack to change your hosts file on your windows box and giving your machine a dynamic name.

The code fix is alot less annoying, but we can't seem to convince a developer to make the addition in the code to make it work right everytime.

Heres the code snippet to change in console.cpp

address.sin_addr.s_addr = htonl(INADDR_ANY);

and put a // in front of it.

Then below that line paste the lines (without the --snip--):

--snip--
// bind only to the address specified as the world address
hostent* bindaddr = gethostbyname(net.GetWorldAddress());

if (bindaddr != NULL)
{
#ifdef WIN32
memcpy ((char FAR *)&(address.sin_addr), bindaddr->h_addr, bindaddr->h_length);
#else
memcpy ((char*)&(address.sin_addr), bindaddr->h_addr, bindaddr->h_length);
#endif
}
else
{
// could not resolve world address... bind to all interfaces then
cout << "Error: could not resolve world address " << net.GetWorldAddress() << endl;
cout << "Listening on INADDR_ANY" << endl;
address.sin_addr.s_addr = htonl(INADDR_ANY);
}


Thank btuch for that one.
Reply With Quote
  #3  
Old 11-02-2002, 02:43 AM
tamarae
Hill Giant
 
Join Date: Oct 2002
Posts: 179
Default

hee this sounds familiar.. spent 2 days getting this working with my LAN. But I did get it to work, so it can be done!

Agreed.. thanks btuch (and Trumpcard)
__________________
--Tamarae Dastile
The Dominare Server
Reply With Quote
  #4  
Old 11-02-2002, 06:48 AM
raventy
Sarnak
 
Join Date: Oct 2002
Posts: 45
Default

OK I tried adding that line of code and compiling but I get errors all over the place, and right now im just using Visual C++ 6 Intro Ed till I get my .net and because its only intro ed it makes this retarted message pop up whenever I execute an .exe saying its the Intro ver. Is thier some other way to do this? or could somebody send me the compiled .exe? I mean its only like 310K compiled. Thanks!
Reply With Quote
  #5  
Old 11-03-2002, 08:40 AM
raventy
Sarnak
 
Join Date: Oct 2002
Posts: 45
Default

yay I got it all working now by useing a dns website thing. Thanks for your help.
Reply With Quote
  #6  
Old 11-03-2002, 10:01 AM
raventy
Sarnak
 
Join Date: Oct 2002
Posts: 45
Default

lol ok I spoke a little too soon, I mean it "works" but not at good preformance. Like the second pc on my LAN connects through the internet then back to the server pc, which causes it to lag. Is thier a way to make the second pc on my LAN connect through the LAN into the server pc?
Reply With Quote
  #7  
Old 11-03-2002, 02:52 PM
Xarslik
Hill Giant
 
Join Date: Oct 2002
Location: System.Web
Posts: 107
Default

http://forums.eqemu.net/showthread.p...;pagenumber=19
__________________
~ Xarslik
[ Xarslik's Arena Challenge Server ]
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:22 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