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!

I need help with my IP

Greystar

Wanderer
TMSTKSBK said:
Firewall or router problem.

If you have firewalls, disable them and try the canyouseeme again. If you don't have a firewall, I recommend getting one.

If you have a router, have you forwarded the port to your computer?


he said in the very beginning he didnt have a router (im assuming a nick like rusty is a he if im wrong please correct me). but firewall may be an issue.
 

Greystar

Wanderer
Rusty said:
how can i know if i have Service Pack 2 i how can i disable?

if you have Windows Automatically update then you will very likely have Service Pack 2. Which automatically turns on a built in firewall (which is extremely annoying in my opinion)... right click on the Network neighborhood icon again go to properties right click on the icon thats still enabled then from there select the Advanced tab if you see firewall options in there then you definitly have Service Pack 2, from there you should be able to change those settings.
 

TMSTKSBK

Lord
Easier?

Start>Control Panel

If there is an icon for Security Center, you have SP 2. It'll be a windows-colored shield.
 
S

Sephy

Guest
Im with problems too... im usin a router but i just can enter with 1 IP... 127.0.0.1 the other that appears is 192.168.0.1 what i need to do? i read all the posts but im with problems
 
S

Sephy

Guest
Look at my serverlist.cs...

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 = "200.233.116.236";
		 * 
		 * If you need to resolve a DNS host name, you can do that too:
		 * private const string Address = "null";
		 */

		public const string Address = "200.233.116.236";

		public const string ServerName = "The Shard Name";

		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;
		}
	}
}
 
Top