|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Dec 2006
Posts: 455
|
Ok, in serverlist.cs I have made the IP my external IP, allowing people to connect to my runuo 2.0 RC1 server over the INTERNET. but how do people connect when on the same NETWORK as me
EG: when friends / family are on the same adsl internet router as me, how do they connect to server its giving me the following problem: when they try connect, it lets them into the shard selection window, but when selecting shard - their client is instantly disconnected. any thoughts of what I can do ? my thought was to define the local IP in serverlist.cs as well, however I'm not entirely sure of how to do this... thanks for help in advanced regards.
__________________
legendsofkaine.page.tl
|
|
|
|
|
|
#2 (permalink) |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
believe what your looking for is
Code:
private static bool IsPrivateNetwork( IPAddress ip )
{
// 10.0.0.0/8
// 172.16.0.0/12
// 192.168.0.0/16
if ( Utility.IPMatch( "192.168.*", ip ) )
return true;
else if ( Utility.IPMatch( "10.*", ip ) )
return true;
else if ( Utility.IPMatch( "172.16-31.*", ip ) )
return true;
else
return false;
}
|
|
|
|
|
|
#3 (permalink) | |
|
Forum Expert
Join Date: Dec 2006
Posts: 455
|
Hey, thanks for the reply
I have done the following to my serverlist.cs: Quote:
btw I am using no-ip legend.zapto.org is the ip that no-ip is forwarding to my ex IP the same problem is occuring - as people on my network login - they are taken to shard selection and as soon as they select shard - it kicks them... regards
__________________
legendsofkaine.page.tl
|
|
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
Join Date: Dec 2006
Posts: 455
|
Could someone do me a favour please...
if there is anyone here who KNOWS their server (run off PC) can be accessed through both the INTERNET and the NETWORK, please post your serverlist.cs script for me thanks a lot
__________________
legendsofkaine.page.tl
|
|
|
|
|
|
#6 (permalink) |
|
Forum Expert
Join Date: Dec 2006
Posts: 455
|
I know we are not supposed to bump threads, I have read the rules - but what if the thread was last posted on days ago, and I am still awaiting some help on the topic ?
![]() so im sorry for doing this, but seriously I need to get this issue sorted out, so my family / friends at my house can also connect to the shard... any suggestions or help at all is great appreciated and MODS have some sympathy - please dont all flame and pwn me O-0 thanks
__________________
legendsofkaine.page.tl
|
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
Join Date: Dec 2005
Posts: 272
|
I would have responded sooner, but been away for a while. I use the serverlist.cd from mr. fixit, and ill try to attach that one to this reply.
Here is a section of that file: Code:
namespace Server.Misc
{
public class ServerList
{
// ==================================================================================
// YOUR SERVERS NAME
// ==================================================================================
public const string ServerName = "Shard Live"; // Server Name Goes Here
// ==================================================================================
// YOUR INTERNET IP OR DNS NAME
// Here you can select to autodetect your internet ip, or manualy specify
// Examples:
// public static string Address = "12.34.56.78";
// public static string Address = "shard.host.com";
// ==================================================================================
public const bool InternetIPAutodetect = true;
public const int MinutesBetweenIPAutodetect = 14400;
public static string Address = "metashard.servegame.com"; // Server Address Goes Here
// ==================================================================================
// Here are some values stored
// ==================================================================================
private static LocalLanIPRange[] LocalLanIPRanges = new LocalLanIPRange[10];
private static UInt32 LocalLanIPRangesCount;
private static AutoIPMirror[] AutoIPMirrors = new AutoIPMirror[10];
private static UInt32 AutoIPMirrorsCount;
private static DateTime InternetIPAutodetectLast;
// ==================================================================================
// Initialization
// ==================================================================================
public static void Initialize()
{
// ----------------------------------------------------
// Load the local LAN ip ranges.
// Remove the // on section you need or create your own
// ----------------------------------------------------
//AddLocalLANIPRange("10.0.0.0", "10.255.255.255");
AddLocalLANIPRange("192.168.0.100", "192.168.255.255");
//AddLocalLANIPRange("172.16.0.0", "172.32.255.255");
//AddLocalLANIPRange("169.254.0.0", "169.254.255.255");
Edit: If you put in your external ip number, set InternetIPAutodetect = false. Good luck! Last edited by Melchior; 07-04-2008 at 06:00 PM. Reason: Forgot |
|
|
|
|
|
#8 (permalink) |
|
Forum Expert
Join Date: Dec 2006
Posts: 455
|
Hey - thanks so much for the reply...
Okay. I did exactly what you told me to (I also use no-ip btw - it makes my ex IP "legend.zapto.org") This is how that section of my serverlist looks now: Code:
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using Server;
using Server.Misc;
using Server.Network;
namespace Server.Misc
{
public class ServerList
{
// ==================================================================================
// YOUR SERVERS NAME
// ==================================================================================
public const string ServerName = "Shard Live"; // Server Name Goes Here
// ==================================================================================
// YOUR INTERNET IP OR DNS NAME
// Here you can select to autodetect your internet ip, or manualy specify
// Examples:
// public static string Address = "12.34.56.78";
// public static string Address = "shard.host.com";
// ==================================================================================
public const bool InternetIPAutodetect = true;
public const int MinutesBetweenIPAutodetect = 14400;
public static string Address = "legend.zapto.org"; // Server Address Goes Here
// ==================================================================================
// Here are some values stored
// ==================================================================================
private static LocalLanIPRange[] LocalLanIPRanges = new LocalLanIPRange[10];
private static UInt32 LocalLanIPRangesCount;
private static AutoIPMirror[] AutoIPMirrors = new AutoIPMirror[10];
private static UInt32 AutoIPMirrorsCount;
private static DateTime InternetIPAutodetectLast;
// ==================================================================================
// Initialization
// ==================================================================================
public static void Initialize()
{
// ----------------------------------------------------
// Load the local LAN ip ranges.
// Remove the // on section you need or create your own
// ----------------------------------------------------
AddLocalLANIPRange("10.0.0.0", "10.255.255.255");
//AddLocalLANIPRange("192.168.0.100", "192.168.255.255");
//AddLocalLANIPRange("172.16.0.0", "172.32.255.255");
//AddLocalLANIPRange("169.254.0.0", "169.254.255.255");
this is the issue it gives: Client: 196.38.218.24: Connected. [1 Online] Login: 196.38.218.24: Valid credentials for 'Wolverine' Player is reconnecting to 196.209.251.3 Client: 196.38.218.24: Disconnected. [0 Online] [wolverine] PS: Connection over the NETWORK works absolutely perfectly now, just the connection over the internet giving problems...
__________________
legendsofkaine.page.tl
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| connection, issues, network |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|