I'm using Lidgren as a networking library for my server application. I am just trying to learn how things can tie together in a real environment (database access, networking, physics, etc), so I decided that I would write a basic server application for Minecraft. It doesn't need to be fully functional, just have the packet handling and whatnot working.
However, my problem is that Lidgren just seems to outright ignore any packets from Minecraft. Why could this be?
var peerConfig = new NetPeerConfiguration("MinecraftDotNet")
{
Port = port,
AcceptIncomingConnections = true
};
peerConfig.EnableMessageType(NetIncomingMessageType.ConnectionApproval);
_lidgrenServer = new NetServer(peerConfig);
_lidgrenServer.Start();
My output shows Debug Messages from Lidgren, but the Minecraft client cannot seem to "see" the server (And I am not getting any incoming packets from the client, either)