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!

People can join but not me.

Maxspigs

Wanderer
Hi everyone , I tried to host a server and after alot of problems I'm still stuck with a new one.

Yesterday no one was able to join my server except me.

Today I can't join my server but other people can join.

The only thing I did is switch the line in Serverlist.Cfg

Exact line is Public const string address = (My.ip.everyone.see)

Instead of 192.0.102.2

If you need more informations tell me.

Thanks alot !

P.s I can join but i'm disconnect after clicking on server. and i have this error = The client could not attach to the game server. It must have been taken down please wait a few minutes and try again.
 

_Epila_

Sorceror
As the server is in your computer, you must use the local loopback ip to login to your server (127.0.0.1 or 'localhost' w/o quotes) and the others must use the external IP (My.ip.everyone.see)
 

Maxspigs

Wanderer
Actually I have two computer one who host and the other i try to join.

The one i try to join and i can't and the other who host the server with this one i can join.


Code:
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 = "Maxspigs.no-ip.org"; //null
        //public const string Address = null; //null
 
        public const string ServerName = "Farador";
 
        public static void Initialize()
        {
            Listener.Port = 2593; //2593CHANGER
 
            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;
        }
    }
}
 

_Epila_

Sorceror
So, if RunUO is in the other computer using the same local network, you should use the 192 IP and your players the external one
 

Maxspigs

Wanderer
Exactly what i did and i'm still stuck at the same place i can log on my account but when i try to continue on the server in the character select it says "the client could not attach to the game server. It must have been taken down please wait a few minutes and try again."
 

Maxspigs

Wanderer
Yah i did and i ask some help to a technician in routing and he said everthing was fine because if the port wasn't open i couldn't even login.. and other people can still join. I can join but when I click on shard name I'm stuck at (the client could not attach to the game server. It must have been taken down please wait a few minutes and try again.)
 
Top