Its a problem with windows 7 I think. Just ran it on an XP emulator fine. Will update this post with the fix when I finish it.
try
{
XYNetCommon.SetSocketPermission();
Listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
Listener.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, 1);
IPAddress hostIP = IPAddress.Parse("YOURLOCALIPHERE");
IPEndPoint myEnd = new IPEndPoint(hostIP, m_nPort);
Listener.Bind(myEnd);
Listener.Listen(m_nListenBacklog);
this.BufferSize = 1024;
Listener.BeginAccept(new AsyncCallback(WaitConnections), new StateObj());
#if DEBUG
Console.WriteLine("Server successfully started");
#endif
}