Hey mordero SVN is now 176 and they changed some lines on Listener.csmordero;653839 said:other than the invalid passwords, that looks like mine.
And you need to make sure you have an IP specified in you ServerList.cs in the distro scripts.
/***************************************************************************
* Listener.cs
* -------------------
* begin : May 1, 2002
* copyright : (C) The RunUO Software Team
* email : [email protected]
*
* $Id: Listener.cs 174 2007-04-25 01:35:38Z mark $
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using Server;
namespace Server.Network
{
public class Listener : IDisposable
{
private Socket m_Listener;
private bool m_Disposed;
private Queue<Socket> m_Accepted;
private object m_AcceptedSyncRoot;
private AsyncCallback m_OnAccept;
private AsyncCallback m_OnDisconnect;
private static Socket[] m_EmptySockets = new Socket[0];
private static int m_Port = 2593;
public static int Port
{
get
{
return m_Port;
}
set
{
m_Port = value;
}
}
public Listener( int port )
{
m_Disposed = false;
m_Accepted = new Queue<Socket>();
m_AcceptedSyncRoot = ((ICollection)m_Accepted).SyncRoot;
m_OnAccept = new AsyncCallback( OnAccept );
m_OnDisconnect = new AsyncCallback( OnDisconnect );
m_Listener = Bind( IPAddress.Any, port );
try
{
IPHostEntry iphe = Dns.GetHostEntry( Dns.GetHostName() );
Console.WriteLine( "Address: {0}:{1}", IPAddress.Loopback, port );
IPAddress[] ip = iphe.AddressList;
for ( int i = 0; i < ip.Length; ++i )
Console.WriteLine( "Address: {0}:{1}", ip[i], port );
}
catch
{
}
}
private Socket Bind( IPAddress ip, int port )
{
IPEndPoint ipep = new IPEndPoint( ip, port );
Socket s = SocketPool.AcquireSocket();
try
{
s.LingerState.Enabled = false;
s.ExclusiveAddressUse = false;
s.Bind( ipep );
s.Listen( 8 );
IAsyncResult res = s.BeginAccept( SocketPool.AcquireSocket(), 0, m_OnAccept, s );
return s;
mordero;677989 said:Bah, ok, Ive taken a look at it, but something is going on with my computer so I have to figure out whatever it is before I can get this working.
Anything new yet ?Raider;678057 said:Ah ok well i'll wait i will keep using SVN 173 till you can get this going Thank You.
A true server shouldn't be using Vista in the 1st place.Raider;686748 said:Also i'm sure the RunUO Team is working on this issue for Windows Vista since you cant no longer buy latest computers with XP they all come with Vistas.
I would say Very true at one time but not no more RunUO Will have to sooner or later make it compatible with vistas as i stated xp will be discontinue sooner or later cause if you go to a computer store to buy any latest new computers you wont find XP on them XP is history .Jeff;686749 said:A true server shouldn't be using Vista in the 1st place.
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";
*/
private const string Address = "70.48.53.91 ";
public const string ServerName = "Shwartz!!";
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 )
{
if ( IPAddress.TryParse( addr, out outValue ) )
return true;
try
{
IPHostEntry iphe = Dns.GetHostEntry( 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.GetHostEntry( Dns.GetHostName() );
for ( int i = 0; !contains && i < iphe.AddressList.Length; ++i )
contains = theirAddress.Equals( iphe.AddressList );
return contains;
}
}
}
Jeff;686749 said:A true server shouldn't be using Vista in the 1st place.
Dont think thats going to help you run RunUO 2.0 Thought you will crash shard on vista on log on.Also, on a side note...you can "disable" IPV6 in Vista. I don't have the specifics at the moment, but all you have to do is go to Device Manager, and there are a couple driver items in there that you have to disable...I think it's the Teredo Tunneling Pseudo-Interface, and the WAN Miniport (IPV6) items. You might have to uncheck the "Internet Protocol Version 6 (TCP/IPv6) item in the Connection Properties of your network card...
Erica;721640 said:Dont think thats going to help you run RunUO 2.0 Thought you will crash shard on vista on log on.
You can make it run on Vista if you do a core modification heres a link on how to make it work on Vista.wieganka;721645 said:I do know, out of the box, RunUO 2 does not work on Vista...when RC2 comes out, I will be sure to check compatibility. Since the Client works fine on Vista, I think it is reasonable to assume that modifications can be made to the core to get it to work properly. I'm sure someone has done it somewhere...I haven't reeally looked much into it at the moment.
Erica;721647 said:You can make it run on Vista if you do a core modification heres a link on how to make it work on Vista.
http://www.runuo.com/forums/faq-forum/80923-getting-runuo-2-0-work-vista.html#post664020
wieganka;721652 said:I'll bet that gets included in the new distro.
Erica;721653 said:Nope read what Ryan says about Windows Vista just keep scrolling down till you see on the post Ryan made. heres the link.
http://www.runuo.com/forums/announcements/85419-runuo-update.html