|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Feb 2004
Posts: 73
|
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. |
|
|
|
|
|
#4 (permalink) |
|
Join Date: Feb 2004
Posts: 73
|
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;
}
}
}
|
|
|
|
|
|
#7 (permalink) |
|
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.
|
|
|
|
|
|
|
#10 (permalink) | |
|
Are "you" trying to connect to your server from the same machine?
If "YES": If "NO" Quote:
|
||
|
|
|
|
|
#12 (permalink) | ||
|
Master of the Internet
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
|
not quite:
Quote:
Quote:
__________________
Goodbye, folks. |
||
|
|
|
|
|
#13 (permalink) |
|
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. |
|
|
|
|
|
|
#15 (permalink) |
|
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 |
|
|
|
|
|
|
#17 (permalink) |
|
Join Date: Feb 2004
Posts: 73
|
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 ![]() |
|
|
|
|
|
#18 (permalink) | |
|
Join Date: Feb 2004
Posts: 73
|
Quote:
tmsksbk |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|