RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

How to configure your server for client connections

Status
Not open for further replies.

David

Moderate
How to configure your server for client connections

Please don't post your support questions in this thread. I will be glad to help but you need to start a new thread with your questions.

So you downloaded the latest version of RunUO, played with it a little and now you want to let others come visit your brand new world. Congratulations, you will be a shard admin in no time.

First, a word about client configurations. The users trying to connect to your shard should be using a fully patched client with encryption removed. The recommended method of disabling client encryption is UO Gateway which you can download here http://uogateway.com/download.html. As an alternate method, you can get a copy of UO-Rice here http://stud4.tuwien.ac.at/~e9425109/UO_RICE.zip that will remove the encryption routines from a UO client.

The default configuration of RunUO will allow players to connect from a client running on the server itself or from a local network (other computers connected directly using a switch or a hub.) However, with players connecting from the Internet it can be a little more complicated.

There are a few things you will need to know before you open your server up to other users. What type of Internet connection are you using, are you using a router, is there a firewall in place, and what version of Windows you are running. It will also be helpful to know if the IP address provided by your ISP is Static (never changes) or Dynamic (changes every time you connect to the Internet.)

You will need to know your IP address. This will also help determine if you have a router between your computer and the Internet. On Windows 95/98/ME click Start then Run, in the box type WINIPCFG and press Enter. There is a drop-down box at the top, if it says PPP adaptor and you have a high-speed connection; you may need to select your network adaptor from that list. The IP address is displayed where it says IP address. On Windows NT/2000/XP click on Start then Programs then Accessories then Command Prompt. A black window will open with a blinking text cursor. Type IPCONFIG and press Enter. The IP address is displayed where it says IP address. If the IP address starts with 192.168 or 10 or 172.16 through 172.31 then it is a private Internet address and you are behind a router. If it starts with anything else it is a public address and you are most likely not behind a router.

Dial-up modem:
It is likely that RunUO will just work, however your number of clients will be real real low. Windows treats modems as network adaptors and it should be the default (first) adaptor so RunUO will listen to it automatically. Just be sure you connect to the Internet before you start RunUO. In this configuration it will be easiest to just determine your IP address and give it to your friends each time you connect. There is no need to make the changes detailed below, you are done.

Network connection without a router (Server has a Public IP):
This configuration is typical of a DSL or Cable modem where the modem is connected directly to the computer and not shared with anyone else. RunUO should work just fine in this configuration as well. If your IP address is not static you may want to consider a DNS Name for your server. See the Dynamic IP discussion below; otherwise you should also be done.

Network connection with a router (Server has a Private IP):
Typical of a small home network with a DSL connection or a large college or company network connected to a T1. In this configuration, the IP address on the outside of the router is what matters; go to http://www.whatismyip.com to determine what that is.

Static IP address with a router:
Good deal, this is easy. Skip on to Configuring your Router.

Dynamic IP address with a router:
This is the most common situation. If you have a Dynamic IP address it is a little more complicated. Since the IP changes every time you reboot the router (at least!) you would have to edit the ServerList.cs file constantly. Fortunately, there is http://www.no-ip.com or http://www.dyndns.org. Either will provide a DNS name that will always point to your public IP address (be sure to follow their instructions.) The server will need to be configured to use this DNS name, and your users will configure their UO clients to do the same.

Configuring your Router:
You will almost certianly need to make a change in the router. If that is not possible, you may be out of luck. For a home network, try connecting to your router with your web browser. The address of the router will be displayed as the Gateway in the ipconfig or winipcfg command shown above. As an example if your local IP address is 192.168.1.n the router address is most likely 192.168.1.1. If it asks for a password, try admin or 1234. You will need to find the Port Forwarding section of the router configuration and forward TCP port 2593 to the local (private) IP address of your RunUO server. At the end of this article are notes and specific instructions for various routers.

Editing the ServerList.cs File:
Next you need to edit the ServerList.cs file on your server. If you have a Static IP, the change is easy and will only need to be done once. If your address is Dynamic you will need to update this file each time it changes unless you have chosen to use a DNS Name for your Server. Using Notepad (or your C# editor of choice) browse to your RunUO folder then to Scripts\Misc and open ServerList.cs. There are 2 lines like so?

Code:
public const string Address = null; 

public const string ServerName = "RunUO Test Center";

The lines you are looking for are just as listed. The ones which start with / or * are comments and will have no effect if they are changed. On the first of the two lines replace the null with your Public IP address or your DNS Name -- whichever you use be sure to enclose it in quotes and end it with a semicolon.

Code:
public const string Address = "206.206.206.206";
--or--
Code:
public const string Address = "myOwnWorld.no-ip.com";

Where "myOwnWorld.no-ip.com" is the DNS Name you acquired, and/or "206.206.206.206" is the IP address of your router (public IP, not private.) The "RunUO Test Center" on the second of the two lines is the name of your shard which you can change to something a little more in tune with the shard you wish to run.
 
Status
Not open for further replies.
Top