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 06-25-2005, 01:45 AM   #1 (permalink)
 
Join Date: Jun 2005
Age: 23
Posts: 1
Default Need some help here

Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
- Error: Scripts\Misc\ServerList.cs: CS1002: (line 23, column 38) ; expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

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 = 127.0.0.1;
*
* 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 = "127.0.0.1";
*
* 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 = "Forsaken Nights";

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( "ForsakenNights", new IPEndPoint( IPAddress.Parse( "127.0.0.1" ), Listener.Port ) );
else
e.Rejected = false;
}
catch
{
e.Rejected = false;

ip is fake just to inform you

any ideas of how to fix it?
EzekielStonez is offline   Reply With Quote
Old 06-25-2005, 02:09 AM   #2 (permalink)
Forum Expert
 
icemallet's Avatar
 
Join Date: Aug 2003
Location: Canada
Posts: 816
Send a message via Skype™ to icemallet
Default

You forgot the "" around the ip, so it should look like this
Code:
public const string Address = "127.0.0.1";
icemallet is offline   Reply With Quote
Old 06-25-2005, 02:22 AM   #3 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Thats also the wrong ip.

You really should reac the comment, tells you what you need to use.
Phantom is offline   Reply With Quote
Old 06-25-2005, 02:31 AM   #4 (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 re

Quote:
ip is fake just to inform you

any ideas of how to fix it?
I take it to mean that the 127.0.0.1 is not your public IP. Since that is an actual ip. Not something anyone else can you use but an ip all the same.
Packer898 is offline   Reply With Quote
Old 06-25-2005, 02:37 AM   #5 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Packer898
I take it to mean that the 127.0.0.1 is not your public IP. Since that is an actual ip. Not something anyone else can you use but an ip all the same.
I didn't read that comment, but my advice is still good for other users I suppose.
Phantom 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