|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#3 (permalink) | |
|
Forum Expert
Join Date: Apr 2004
Posts: 426
|
Quote:
|
|
|
|
|
|
|
#6 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
|
I told you what you needed to do. You need to edit the serverlist.cs file to fit with your networking setup.
The file contains info on what you need to enter and if you need further help there are tons of posts on this subject you just need to search for it. |
|
|
|
|
|
#7 (permalink) | |
|
Forum Expert
Join Date: Apr 2004
Posts: 426
|
Quote:
|
|
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
|
Ok
How are you connecting? Are you on the same computer the server is? Do you want your shard to be public? What is your network setup? Do you have a router? Which ip did you use internal or external? You will find many posts via the search if you combine your answers to these questions with something like can't connect, router troubels, serverlist.cs help. Take a look around first and see if your issue has already been solved. If not post your serverlist and your ip and we can try to go from there. Edit darn phantom beat me to it :P |
|
|
|
|
|
#10 (permalink) | |
|
Forum Expert
Join Date: Apr 2004
Posts: 426
|
Quote:
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 = null; public const string ServerName = "Europa"; public static void Initialize() { Listener.Port = 2593; EventSink.ServerList += new ServerListEventHandler( EventSink_ServerList ); } public static void EventSink_ServerList( ServerListEventArgs e ) { try { IPAddress ipAddr; if ( Resolve( Address != null && !IsLocalMachine( e.State ) ? Address : Dns.GetHostName(), out ipAddr ) ) e.AddServer( ServerName, new IPEndPoint( ipAddr, 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; } } } |
|
|
|
|
|
|
#15 (permalink) | |
|
Forum Expert
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
|
Quote:
If you care about being a public shard you will need to put your external ip in there instead of my example. If you don't care about being public you can use 127.0.0.1 and only connect to it locally. |
|
|
|
|
|
|
#17 (permalink) | |
|
Forum Expert
Join Date: Apr 2004
Posts: 426
|
Quote:
i wrote it but i still cant connecct i want a make it public |
|
|
|
|
|
|
#18 (permalink) | |
|
Forum Expert
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
|
Quote:
Are you on the same computer as the server? |
|
|
|
|
|
|
#19 (permalink) |
|
Account Terminated
|
Do you have a router/firewall
If you do you need to forward your port, or allow runuo to access the internet. Most routers act like a firewall, so either way you have to make a rule/forward your port to your server. So people can connect. You should use 127.0.0.1 to connect to yourself. |
|
|
|
|
|
#22 (permalink) | |
|
Forum Expert
Join Date: Apr 2004
Posts: 426
|
Quote:
|
|
|
|
|
|
|
#23 (permalink) | |
|
Forum Expert
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
|
Quote:
Then you will need to use 127.0.0.1 in your uogateway or login.cfg to connect. Leave the ip as it is in your serverlis.cs if you want it to be public and again if you have a router you will need to forward port 2593. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|