Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 09-05-2005, 06:51 PM   #1 (permalink)
 
Join Date: Feb 2004
Posts: 73
Default Having problem with the conection of my server

I have a Big problem, this is:
i have two computers in my house, one of two computer had installed runuo shard, and all components, and the other pc have AOS installed with the login of my pc... but, ( always this word =( "BUT") i can´t connect to my own shard, all peoples outside can get in my shard, but not me... is something with my own login.cs? or something? please peoples help me, i want to play my own shard in the other pc...( is the same router so, i dunno the problem exactly...
thanks a lot peoples.
percak is offline   Reply With Quote
Old 09-05-2005, 08:29 PM   #2 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

In UOGateway make a local server with the ip of 127.0.0.1 and whatever port you use then connect that way instead of thru your public ip.
Packer898 is offline   Reply With Quote
Old 09-05-2005, 10:25 PM   #3 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

Well...if it was on the same computer, yes. Since it's on a different computer, I'd say you need to update/reinstall your client.
__________________
Goodbye, folks.
TMSTKSBK is offline   Reply With Quote
Old 09-06-2005, 02:08 PM   #4 (permalink)
 
Join Date: Feb 2004
Posts: 73
Default

Well, is not in the same computer, like i said before, i have two computers, one to be just server, and another to play with my GM, Players, Open MSn etc... but when i try to log in, in the server computer, i can play, but when i try to log in in the other computers, i cannot connect to my own Shard, so...=(

This is my serverlist, i i guess this is the problem, cuz i change some settings and i´d log in my shard but others peoples not...please help me ... thanks.

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 = "192.168.1.3";
		 * 
		 * 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 = "xXxXx(my IP)";

		public const string ServerName = "Gods Of Fire";

		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;
		}
	}
}
percak is offline   Reply With Quote
Old 09-06-2005, 02:36 PM   #5 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

ahem...
Quote:
Originally Posted by self
Since it's on a different computer, I'd say you need to update/reinstall your client.
__________________
Goodbye, folks.
TMSTKSBK is offline   Reply With Quote
Old 09-06-2005, 02:39 PM   #6 (permalink)
 
Join Date: Feb 2004
Posts: 73
Default

is done... i´d do that but the problem continue...
percak is offline   Reply With Quote
Old 09-06-2005, 02:52 PM   #7 (permalink)
 
Join Date: Jan 2004
Location: Peoria IL
Age: 26
Posts: 47
Send a message via Yahoo to arazons
Default heres your problem...

Since you are trying to connect via a lan, try putting a local listing in UOGateway but use your host computers lan IP not "127.0.0.1". It should be something like "192.168.0.XXX". Or you can change your Login.cfg to show the lan ip of the host computer. (this may not work if your servers config is not be setup to accept encrypted clients) Let us know if this doesnt help I may have a few more suggestions for ya.
arazons is offline   Reply With Quote
Old 09-06-2005, 02:54 PM   #8 (permalink)
 
Join Date: Feb 2004
Posts: 73
Default

Im playing on net, i mean i want peoples playing on my shard and i want to play too, but when i try to log in in my own computer i can´t, but when someone try to log in it can
percak is offline   Reply With Quote
Old 09-06-2005, 02:57 PM   #9 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

ja.

do what he said, please, it is a possible solution.
__________________
Goodbye, folks.
TMSTKSBK is offline   Reply With Quote
Old 09-06-2005, 03:03 PM   #10 (permalink)
 
Join Date: Jan 2004
Location: Peoria IL
Age: 26
Posts: 47
Send a message via Yahoo to arazons
Default Please clarify...

Are "you" trying to connect to your server from the same machine?
If "YES":
Edit Login.cfg to read "loginserver=127.0.0.1,2593"
or
Make a local server listing in UOGateway and make the IP "127.0.0.1"
If "NO"
Do the two computers have seperate connections to the internet?
Then make sure you are attempting to connect to the right IP.

Are you trying to connect to the server from a computer that is "networked" to the other machine?
Then follow the steps I provided in my last post.
Quote:
Since you are trying to connect via a lan, try putting a local listing in UOGateway but use your host computers lan IP not "127.0.0.1". It should be something like "192.168.0.XXX". Or you can change your Login.cfg to show the lan ip of the host computer. (this may not work if your servers config is not be setup to accept encrypted clients) Let us know if this doesnt help I may have a few more suggestions for ya.
arazons is offline   Reply With Quote
Old 09-06-2005, 03:05 PM   #11 (permalink)
 
Join Date: Feb 2004
Posts: 73
Default

Quote:
Originally Posted by TMSTKSBK
ja.

do what he said, please, it is a possible solution.
i will, please be patient im not too fast,sorry im trying doing what it say arazon..
thanks. i will post if this help me ^_^
percak is offline   Reply With Quote
Old 09-06-2005, 03:06 PM   #12 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

not quite:
Quote:
Originally Posted by arazons
Are "you" trying to connect to your server from the same machine?
b/c:
Quote:
Originally Posted by percak
but when i try to log in in the other computers, i cannot connect to my own Shard, so...=(
QED
__________________
Goodbye, folks.
TMSTKSBK is offline   Reply With Quote
Old 09-06-2005, 03:11 PM   #13 (permalink)
 
Join Date: Jan 2004
Location: Peoria IL
Age: 26
Posts: 47
Send a message via Yahoo to arazons
Default yeah...

Just noticed that myself...

So the problem is with being behind the same router.

You will need to connect to the LAN IP address "192.168.0.XXX". Either through UOGateway or setting the Login.cfg to the LAN IP manually.

Reason:

When you try to connect to the router IP from within the routers domain itself it will not forward to the Host Machine. Connect via the LAN IP and you should be fine.
arazons is offline   Reply With Quote
Old 09-06-2005, 03:14 PM   #14 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

/me would recommend the UOGateway route...modifying login.cfg is somewhat deprecated...
__________________
Goodbye, folks.
TMSTKSBK is offline   Reply With Quote
Old 09-06-2005, 03:20 PM   #15 (permalink)
 
Join Date: Jan 2004
Location: Peoria IL
Age: 26
Posts: 47
Send a message via Yahoo to arazons
Default If you are still experiencing problems...

RunUO will not accept incoming connection requests from a client that requested the connection for the Server, if the IP that is listed in your ServerList.cs does not match what the client is attempting to connect to. The only exception for this is if the Client is attempting to connect to 127.0.0.1

There is a solution to your problem here (essentially MRFixit's serverlist.cs has RunUO listen on all open LAN IP addresses as well as connects to remote servers that check your internet/external IP for the server router and uses the IP address for external (non LAN) connection requests.

Get the server list here...

Artifacts not spawning
arazons is offline   Reply With Quote
Old 09-07-2005, 04:23 AM   #16 (permalink)
 
Join Date: Apr 2003
Location: Pennsylvania
Posts: 77
Send a message via AIM to Stevers14 Send a message via MSN to Stevers14
Default The solution...

Get Mr. Fixit's ServerList.cs file... and delete your old ServerList.cs file.. thats the same problem I had with my server a long time ago... and Mr. Fixit's ServerList file worked for me
Stevers14 is offline   Reply With Quote
Old 09-07-2005, 11:50 AM   #17 (permalink)
 
Join Date: Feb 2004
Posts: 73
Default

Thanks a lot guys, my problem is fixed, i´d do what said arazons i mean the link that he post, very nice... thanks, thanks a lot i can finally play my own shard has player ^_^...
thanks again.
mmm a question ( on this post not to open another) where can i modify that noone can atack on house´s i mean, that in this moment evetybody can kill inside a house, but i want to make that all atacks cannot be possible inside a house...thanks again
percak is offline   Reply With Quote
Old 09-07-2005, 11:54 AM   #18 (permalink)
 
Join Date: Feb 2004
Posts: 73
Default

Quote:
Originally Posted by Stevers14
Get Mr. Fixit's ServerList.cs file... and delete your old ServerList.cs file.. thats the same problem I had with my server a long time ago... and Mr. Fixit's ServerList file worked for me
Yeah men, Mr. Fixit´s do the job for me too, but with the help of arazons, xD and off course the other friend tmsksbk
percak is offline   Reply With Quote
Old 09-07-2005, 03:59 PM   #19 (permalink)
 
Join Date: Jan 2004
Location: Peoria IL
Age: 26
Posts: 47
Send a message via Yahoo to arazons
Default

check out the file HouseRegion.cs

you should be able to do something in here that prevents combat...
arazons is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5