5:58 - [WorldServer] Creating Game Thread..
5:58 - [WorldServer] (Game Thread) Success.
5:58 - [WorldServer] Creating Auth Thread..
5:58 - [AuthServer-Init] Failed, unable to bind server to socket.
5:58 - at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at WorldServer.Networking.MasterSocket..ctor(String name) in C:\Users\Thomas\Documents\Visual Studio 2010\Projects\Elite-CoEmu\svn\WorldServer\Networking\Sockets.cs:line 44
5:58 - [WorldServer] Spawned 9127 monsters into the world.
I highly doubt anyone would use this source anymore.
The error tells you that something runs on that port again. Simply reboot your PC if you cant find the application thats using it (might be a instance of the server wich failed to shut down properly)
If you know what you´re doing, use the taskmanager to end the process.
^ If this makes no sense to you, reboot your pc.
Thanks Yuki for ur reply
i have restarted my windows server and nothing changed
and i know how to check taskmanager but there is no other process uses any of the worldserver ports
Thanks Yuki for ur reply
i have restarted my windows server and nothing changed
and i know how to check taskmanager but there is no other process uses any of the worldserver ports
idk what's wrong
be sure both servers (auth & game) are listening on IP: 0.0.0.0 and only the authserver sends the acctual IP in the authresponse packet.
Yuki >>
ips is only changing in this file
Sockets.sc
Quote:
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace WorldServer.Networking
{
public class MasterSocket
{
protected Socket ServerSocket;
protected const int LOGIN_PORT = 9958;
// Use your ip4 or ip6 or external ip address
protected const string SERVER_IP = "server ip";
protected const string SITE_IP = "127.0.0.1";
protected const int AUTH_PORT = 5817;
protected const int GAME_PORT = 5816;
protected string ServerName;
protected static bool Continue = true;
public MasterSocket(string name)
{
ServerName = name;
if (name == "GameServer")
{
ServerSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPEndPoint IPE = new IPEndPoint(IPAddress.Parse(SERVER_IP), GAME_PORT);
try
{
ServerSocket.Bind(IPE);
}
catch (Exception EXC)
{
Program.WriteLine("[" + name + "-Init] Failed, unable to bind server to socket.");
Program.WriteLine(EXC);
System.Environment.Exit(-1);
}
}
else if (name == "AuthServer")
{
ServerSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPEndPoint IPE = new IPEndPoint(IPAddress.Parse(SERVER_IP), AUTH_PORT);
try
{
ServerSocket.Bind(IPE);
}
catch (Exception e)
{
Program.WriteLine("[" + name + "-Init] Failed, unable to bind server to socket.");
Program.WriteLine(e.StackTrace);
System.Environment.Exit(-1);
}
}
}
public void AcceptNewConnections()
{
ServerSocket.Listen(100);
while (Continue)
{
if (ServerName == "GameServer")
{
Socket CSocket = null;
try
{
CSocket = ServerSocket.Accept();
}
catch (Exception e)
{
Program.WriteLine("Unable to accept a new connection, closing now.");
ServerSocket.Close();
Program.WriteLine(e.StackTrace);
return;
}
try
{
if (CSocket.Connected)
{
if (!CSocket.RemoteEndPoint.ToString().Contains(SITE_ IP))
{
//ClientSocket CS = new ClientSocket(CSocket);
//new Thread(CS.Run).Start();
}
else
{
CSocket.Close();
}
}
}
catch (Exception e)
{
if (CSocket != null)
CSocket.Close();
Program.WriteLine("[GameServer] Unable to login a new client, see exception print below.");
Program.WriteLine(e.ToString());
}
}
if (ServerName == "AuthServer")
{
Socket ASocket = null;
try
{
ASocket = ServerSocket.Accept();
}
catch (Exception e)
{
Program.WriteLine("Unable to accept data from Auth Server.");
ServerSocket.Close();
Program.WriteLine(e.ToString());
return;
}
if (ASocket != null)
{
try
{
byte[] Buffer = new byte[8092];
int size = ASocket.Receive(Buffer);
byte[] Data = new byte[size];
Array.Copy(Buffer, Data, size);
AuthHandler.HandleAuth(Data, ASocket);
Data = null;
Buffer = null;
}
catch (Exception e)
{
Program.WriteLine(e.ToString());
}
}
}
}
}
public void Close()
{
Program.WriteLine("[" + ServerName + "-End] Closing Socket.");
ServerSocket.Close();
Continue = false;
if (ServerName == "GameServer")
{
World.Continue = false;
}
}
}
}
and then in CFGWorldServer file it just need the db info
so how i can check that " be sure both servers (auth & game) are listening on IP: 0.0.0.0 and only the authserver sends the acctual IP in the authresponse packet. "
It's better this source than a modified trinity source from outside the community. I just so happen to have a backup on my hard drive, along with many other sources I probably shouldn't still have.
[Release] Elite-CoEmu 5095 Source 09/27/2013 - CO2 PServer Guides & Releases - 126 Replies Ok ive decided to release my older modified coemu source because ive remade it and fixed almost everything in it.
Here is some info about this source:
GuildWars = Finished. Talis up scores threw hole gw and the guild with the most at the end wins.
DisCity = Done.
Nobility = Done.
Added a GUI instead of Console.
MultiThreaded to add stability.
Fixed password on First Log, it now reads pw set from register script.
Added Config file to load settings db / ip / ports / number of noble...
[Release] Elite CoEmu (rev 80) with partial Duelist/Companion System 09/12/2013 - CO2 PServer Guides & Releases - 11 Replies Ok so I wrote this thread earlier and apparently closed the tab while raring/uploading the source... my bad.
Basically to save people time I'm releasing my FIRST version of the duelist bots I was coding. This is the worst version I have but it works and doesn't have any massive bugs (for the amount coded). I'm releasing it because I'm re-coding every bot feature and making it more modular/self contained so I can transfer it to the new revision and any other sources in the future. I'm also...
[Release]Website for Elite-CoEmu Source 07/10/2010 - CO2 PServer Guides & Releases - 9 Replies any information u want to know post it and i'll gladly answer it but first please read the readme included with the site if u still have questions feel free to pm me or post in this thread
again please read the readme included with the file befor asking questions
Update:
P.S. this only works with the 5095 part of it right now
ImageShack Album - 1 image of updated website
[Release] 1v1 Pk Event for Elite-CoEmu 06/06/2010 - CO2 PServer Guides & Releases - 14 Replies Here is my first event ive coded. Its a 1 v 1 Pk Event where the winner gets a prize
First add a new .cs file in Structures/features folder and name it what ever u want.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;