Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Closed Thread
 
Thread Tools Display Modes
Old 09-23-2003, 04:31 PM   #1 (permalink)
 
Join Date: Jul 2003
Posts: 19
Default Help with router

OK. I tried to make a shard ages ago only to find to my dismay that I could not host it due to my netgear router. I forward the port. I have tried everything. It works without the router but I cannot remove the router. So what can I do? I can't find the FAQ either. But I did find it before and im sure it didn't work. I have tried other servers like POL and Sphere but they don't work either. So could someone please post some help to me or the link.
majesticxii is offline  
Old 09-23-2003, 10:59 PM   #2 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Netgear routers have an issue with connecting to the external address from the LAN side. You can open the port (TCP 2593) to your RunUO server but you cannot connect to it in exactly the same fashon as your clients. What you will need to do is edit your ServerList.cs file to provide two entry points for your server. One will work for Internet users and one will work for LAN users. I do not have the details at my fingertips, but try doing a search on ServerList and Netgear. Or maybe some of our users that have overcome this issue may jump in....?

Good luck!
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline  
Old 09-24-2003, 09:38 AM   #3 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by David
Netgear routers have an issue with connecting to the external address from the LAN side. You can open the port (TCP 2593) to your RunUO server but you cannot connect to it in exactly the same fashon as your clients. What you will need to do is edit your ServerList.cs file to provide two entry points for your server. One will work for Internet users and one will work for LAN users. I do not have the details at my fingertips, but try doing a search on ServerList and Netgear. Or maybe some of our users that have overcome this issue may jump in....?

Good luck!
I posted how to do this in the FAQ Forum
Phantom is offline  
Old 09-25-2003, 12:51 PM   #4 (permalink)
 
Join Date: Jul 2003
Posts: 19
Default Urm

My problem is that only people within the LAN can connect. Those outside the lan cannot connect. So is there anything special I need to do for that? And also all items appear as Null: string or somesuch...:/
majesticxii is offline  
Old 09-25-2003, 01:54 PM   #5 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default Re: Urm

Quote:
Originally Posted by majesticxii
My problem is that only people within the LAN can connect. Those outside the lan cannot connect. So is there anything special I need to do for that? And also all items appear as Null: string or somesuch...:/
1) You need to update your client

2) You need to follow the directions in my FAQ, explains the problem you have.
Phantom is offline  
Old 09-25-2003, 02:00 PM   #6 (permalink)
 
Join Date: Jul 2003
Posts: 19
Default Gah

I have done. I copied the code etc...and it still doesn't work. Does it need to know where my UO directory is? And in what file? (im a total noob to RunUO. Im more used to Sphere but RunUO seems to be better)
majesticxii is offline  
Old 09-25-2003, 02:03 PM   #7 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Post your ServerList.cs

I am going to be upset if its not correct. As I know my guide works.
Phantom is offline  
Old 09-25-2003, 02:08 PM   #8 (permalink)
 
Join Date: Jul 2003
Posts: 19
Default ServerList.cs

using System;
using System.Net;
using System.Net.Sockets;
using Server;
using Server.Network;

namespace Server.Misc
{
public class ServerList
{
/* Address:
*
* The default setting, a value of 'null', will attempt to detect your IP address automatically:
* private const string Address = null;
*
* This detection, however, does not work for servers behind routers. If you're running behind a router, put in your IP:
* private const string Address = "12.34.56.78";
*
* If you need to resolve a DNS host name, you can do that too:
* private const string Address = "shard.host.com";
*/

public const string Address = "80.5.141.144";

public const string LocalServerAddress = "192.168.0.6";

public const string ServerName = "Majestic";

public static void Initialize()
{
Listener.Port = 2593;

EventSink.ServerList += new ServerListEventHandler( EventSink_ServerList );
}

public static void EventSink_ServerList( ServerListEventArgs e )
{
try
{
IPAddress ipAddr;
IPAddress LocalAddress = IPAddress.Parse( LocalServerAddress );


if ( Resolve( Address != null && !IsLocalMachine( e.State ) ? Address : Dns.GetHostName(), out ipAddr ) )
{
e.AddServer( ServerName, new IPEndPoint( ipAddr, Listener.Port ) );
e.AddServer( "Local Server", new IPEndPoint( LocalAddress, Listener.Port ) );
}
else
e.Rejected = true;
}
catch
{
e.Rejected = true;
}
}

public static bool Resolve( string addr, out IPAddress outValue )
{
try
{
outValue = IPAddress.Parse( addr );
return true;
}
catch
{
try
{
IPHostEntry iphe = Dns.Resolve( addr );

if ( iphe.AddressList.Length > 0 )
{
outValue = iphe.AddressList[iphe.AddressList.Length - 1];
return true;
}
}
catch
{
}
}

outValue = IPAddress.None;
return false;
}

private static bool IsLocalMachine( NetState state )
{
Socket sock = state.Socket;

IPAddress theirAddress = ((IPEndPoint)sock.RemoteEndPoint).Address;

if ( IPAddress.IsLoopback( theirAddress ) )
return true;

bool contains = false;
IPHostEntry iphe = Dns.Resolve( Dns.GetHostName() );

for ( int i = 0; !contains && i < iphe.AddressList.Length; ++i )
contains = theirAddress.Equals( iphe.AddressList[i] );

return contains;
}
}
}
majesticxii is offline  
Old 09-25-2003, 08:13 PM   #9 (permalink)
 
Join Date: Jul 2003
Posts: 19
Default Serverlist

That was properly used, right? It still doesn't work. So it is me, or what?
majesticxii is offline  
Old 09-26-2003, 08:20 AM   #10 (permalink)
 
Join Date: Jul 2003
Posts: 19
Default Hello?

Am I using it correctly? It's fully updated and still not working. Whats the problem with it?
majesticxii is offline  
Old 09-26-2003, 09:26 AM   #11 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Your trying to login to the Local Server right?
Phantom is offline  
Old 09-26-2003, 09:40 AM   #12 (permalink)
 
Join Date: Jul 2003
Posts: 19
Default Local Server

No. I can't log in to the local server. But other people can't even connect to me. Everything WITHIN the LAN is fine. It's people on the internet who can't connect to it.
majesticxii is offline  
Old 09-26-2003, 12:25 PM   #13 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Then you still need to forward your port to your Server's Lan IP.

In the future tell us whats not working as I thought you were unable to login to your own server within your lan, which is the whole point of my Guide :-)
Phantom is offline  
Old 09-26-2003, 12:34 PM   #14 (permalink)
 
Join Date: Jul 2003
Posts: 19
Default ARGH!

I have had the port forwarded all along. It's not the forwarding. And at the start I said it's people from the outside (internet) connecting to me. You just assumed it was the same problem. So do you have any answers to my problem? Or is it unfixable? Do I need to forward more than just 2593?
majesticxii is offline  
Old 09-26-2003, 12:56 PM   #15 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

This is why I thought you had the same issue as everyone else that has problems using a setup where they use a router. You don't say what part doesn't work.

That was properly used, right? It still doesn't work. So it is me, or what?

With that said, I don't think I like how your treating me... So you know I did read your question:

Quote:
OK. I tried to make a shard ages ago only to find to my dismay that I could not host it due to my netgear router. I forward the port. I have tried everything. It works without the router but I cannot remove the router. So what can I do? I can't find the FAQ either. But I did find it before and im sure it didn't work. I have tried other servers like POL and Sphere but they don't work either. So could someone please post some help to me or the link.
Not till later did you say you were able to connect within your own lan:

Quote:
My problem is that only people within the LAN can connect. Those outside the lan cannot connect. So is there anything special I need to do for that? And also all items appear as Null: string or somesuch...:/
When I tried to login, I wasn't even able to get to the ServerList.cs.

This tells me you didn't forward the right traffic. Or simply the server isn't running.

Try allowing ALL traffic on port 2593 I know both are not needed but this will get rid of the confusion.

In the future try more mellow, I almost don't feel like helping you after your last reply.
Phantom is offline  
Old 09-26-2003, 01:05 PM   #16 (permalink)
 
Join Date: Jul 2003
Posts: 19
Default Server

OK. It wasn't meant to sound like that. Only after reading the second time did I notice it could be taken offensivly. The server may not have been running. It is now. On a side note can you get a world with pre-spawned monsters? Because the dungeons...etc aren't spawned and I don't have the knowledge to create spawn points
majesticxii is offline  
Old 09-26-2003, 03:59 PM   #17 (permalink)
 
Join Date: Jul 2003
Location: USA
Age: 30
Posts: 34
Send a message via ICQ to dwaynelm
Default

I'm having the same problem myself with my dsl router. I've used no-ip and it shows the ip address for the router but runuo shows the ip address for my network card. I've tried to change the settings on no-ip to not detect my router ip address but it wont work to let me friends over the internet connect. Setting up no-ip to not detect my ip address wont connect to the no-ip servers for some reason, but my question to the problem is, is there something I should do to my script serverlist.cs to get it to work over the internet without having to give out my ip address everytime for my friends to connect.
dwaynelm is offline  
Old 09-27-2003, 08:09 AM   #18 (permalink)
 
Join Date: Jul 2003
Posts: 19
Default HELP!

Can anyone at all help me with this problem?
majesticxii is offline  
Old 09-27-2003, 12:07 PM   #19 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

You can download a spawn generator in Script Submissions.

I have already told you what to do.... If it doesn't work your doing something wrong.
Phantom is offline  
Old 09-27-2003, 12:16 PM   #20 (permalink)
 
Join Date: Jul 2003
Posts: 19
Default :/

When did you tell me what im supposed to do. I sent you my serverlist.cs and you didn't say there was something wrong with it. I have it fully updated and my port is forwarded. . I can't see where you said how to fix it. I've looked over the FAQ repeatedly and it doesn't tell me how to fix my problem. I will detail what im having problems with
I cannot log into Local Server how ever I can log into the other and that works fine. Other people can't even connect to my shard as it would display it in the server console. Do you have any idea why this might happen? Is there an extra bit in my router I have to configure?
majesticxii is offline  
Old 09-27-2003, 12:40 PM   #21 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Well lets just say this.

The only way you would be able to login from another computer on the Lan besides you logging in the server which case you would use 127.0.0.1 is for you to connect and login to the your Server's Lan address.

If people cannot login to your public server listing, then try forwarding ALL traffic through port 2593 to your Server's lan address.
Phantom is offline  
Old 09-29-2003, 02:05 AM   #22 (permalink)
 
Join Date: Oct 2003
Posts: 23
Default

Hey man, I was having the same trouble with my router and i found out that it wasnt my router, it was my modem. Im using a westell DSL modem, I called the tech support on it and they told me that theres a built in firewall on it and that i needed to perform a IP passthrough. If they wouldve said this on the box it wouldve saved me ALOT of trouble and getting pissed off...lol. What i did was went to Modem settings page, went to IP passthrough part and set it to let everything throu to my Router WAN IP address whick was 192.168.1.97, then i went to my router setting page and set Port forwarding to forward TCP port 2593 to my LAN IP address which was 192.168.2.101(btw i have 3 comps on my LAN) Now once i did that it was fixed. Next goto www.findmyip.com and thats the IP u need to give everyone. This may not be your problem, but it was mine, I hope it helps...
Exodust is offline  
Old 09-29-2003, 02:11 AM   #23 (permalink)
 
Join Date: Jun 2003
Posts: 277
Send a message via Yahoo to Caesar
Default um can u help me?

Ok this is wat i got am i anywere close? is so what do i put in the fields? my port is 8080 and i cant change that not allowed...so for port from and to wat do i put in those fields? and wat port type is it TCP or UDC? and what do i put in for host ip address? cos it keeps changing ip but no-ip redirects it so i dnt have actual same address? or do i put in my LAN ip??

once this is done what the public put in for IP in gateway to connect to my server host? in custom shard settings do they put in my LAN ip? cos my net WAN ip keeps changing so they cant put that in?


Virtual Server Configuration

ID Port (From) Port (To) Port Type Map To Host IP Address

--------------------------------------------------------------------------------

- Use the following form to add special port that you want to be opened for your special application


ID Port (From) Port (To) Port Type Map To Host IP Address
~ TCP
UDP --->

Settings need to be saved to Flash and the system needs to be rebooted for changes to take effect.

Number of Virtual Servers 0
Caesar is offline  
Old 09-30-2003, 08:27 AM   #24 (permalink)
 
Join Date: Jul 2003
Location: USA
Age: 30
Posts: 34
Send a message via ICQ to dwaynelm
Default

I have a question. How can I get runuo to use my dsl ip address intead of my network card address? When runuo loads it only shows what my ip address is for my network card and the ip address 127.0.0.1 . I've tried the serverlist.cs like this;
public const string Address = "xxx.xxx.xx.xx";

with the ip address of my dsl modem in it but when it loads it still uses my ip address of my network card. Any help with this is greatly appreciated.
dwaynelm is offline  
Old 09-30-2003, 09:23 PM   #25 (permalink)
 
Join Date: Oct 2002
Posts: 196
Default

I have a dsl router too.
The server showing you the two addresses is normal and correct.

You need to let no-ip.com detect your router-thats the whole point in it.
Your router has a address(the side thats plugged in your wall and constantly is changing) and the other side has an address too going to your net card(its gonna be one of the two addresses that your runuo server is showing and its not gonna be the 127.0.0.1). Somehow the info at the outside of your router needs to 'relay' that info to your net card-the solution is IP forwarding. You go to your router configuration setup and in the IP forwarding section you tell it port 2593 to port 2593 (or maybe your setup just allows one box for a port)
and tell it that its TCP (if applicable) and give it the net card address that runuo server shows(not the 127.0.0.1) Now it knows how to forward stuff going into your router-thru your router-to your net card and runuo is waiting there at your net card to handle the rest.

Now you give your friends your yourname.no-ip.com port 2593 to put into their uogateway, but in your uogateway you put the 127.0.0.1 port 2593.

Also, in your serverlist.cs you need to put in "yourname.no-ip.com" but use your own full no-ip.com name like this:

[code:1] * If you need to resolve a DNS host name, you can do that too:
* private const string Address = "shard.host.com";
*/

public const string Address = "runuo.dyndns.org"; <=yourname.no-ip.com goes here
[/code:1]

I know this ip forwarding crap and ports and routers can be intimidating at first but once you have done it a time or two you'll be a professional newb just like the rest of us
Hope this helps
kada20 is offline  
Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5