|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Here is a full error... It occurs when I just load the software normally.
I followed all the newbie steps listed in one of the start up sticky posts. I set my IP and all that junk... Ive tried my ip 63.xxx.xxx.xx and 127.0.0.1.. keep getting this error.. any help is greatly appreciated. thx Oph Server Crash Report =================== Operating System: Microsoft Windows NT 5.0.2195.0 .NET Framework: 1.1.4322.573 Time: 10/17/2003 5:19:52 AM Mobiles: 2190 Items: 69657 Clients: - Count: 0 Exception: System.TypeInitializationException: The type initializer for "System.Net.IPAddress" threw an exception. ---> System.TypeInitializationException: The type initializer for "System.Net.Sockets.Socket" threw an exception. ---> System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full at System.Net.Sockets.Socket.InitializeSockets() at System.Net.Sockets.Socket..cctor() --- End of inner exception stack trace --- at System.Net.Sockets.Socket.InitializeSockets() at System.Net.IPAddress..cctor() --- End of inner exception stack trace --- at Server.Network.Listener..ctor() at Server.Core.Main(String[] args) |
|
|
|
|
|
|
#3 (permalink) |
|
Here ya go.. thanks
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 = "127.0.0.1"; public const string ServerName = "PvP Unlimited "; 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; } } } |
|
|
|
|
|
|
#5 (permalink) |
|
Nope Nope.. I tried it with my IP.. I said that in the original post I think
I was just trying the 127 for fun.. and no I don't have a router.. I have a static IP address. Ive tried it with a buncha junk and haven't gotten it to work. I originally looked at your FAQ and copied and pasted the stuff directly from it... uhm.. Ill try again I guess :? |
|
|
|
|
|
|
#7 (permalink) |
|
First off the IP you use in serverlist.cs should be whatever IP this site gives you:
www.whatismyip.com If you have used that IP and you can't even log on yourself then your having the exact same problem that I am. In which case no one is able to help me, so if you figure it out let me know =] |
|
|
|
|
|
|
#9 (permalink) |
|
I get the same damn problem with null tho.. Ive tried them all
Is it possible that the problem Im having is the ones that the code error suggests? System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full Whats the deal with the buffer space or queue stuff? Ill try re-unzipping the software and reloading it.. maybe I f'd something up on accident in the cs file.. Im plain outa ideas.. Can someone please help me resolve this? |
|
|
|
|
|
|
#10 (permalink) |
|
I think this issue might have to do with win 2000 professional edition
Ive seen this server run on different computers.. I am going to try and run it on a 2ndary PC that has w2k professional.. Microsoft's Knowledgebase suggested that the error was due to some socket stuff blah blah but I tried thier solution and it didn't work so I am assuming that the problem they specified is different.. Is anyone else running run UO on Win2k Prof Edition? |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|