Question

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)

Was it helpful?

Solution

As there has been no answer, I will close this question. It seems that due to some limitation of Lidgren, it can only receive messages that were written in Lidgren clients.

OTHER TIPS

Ok a little bit over time, Minecraft doesn't understand how to read lidgren packages.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top