I managed to build openjdk7 on a DragonFly 2.9 system, and run a Minecraft server… but I can’t connect to it. Anyone want to hazard a guess as to why? I haven’t used Java much in the past few years, so I’m not sure where to troubleshoot.
4 Replies to “Minecraft! On DragonFly! Almost!”
Comments are closed.
Are there any messages or exceptions being reported? Check for both the server and client. Also, if your system has multiple interfaces or ipv6 you might need to fiddle to use the right iface or ipv4.
Best regards!
-james.
Nothing reported at the console when it runs. The system has two interfaces and I think I hit both… Needs more experimentation.
According to sockstat:
root java 23437 6 stream (not connected)
root java 23437 9 stream (not connected)
root java 23437 10 tcp6 *:25565 *:*
So it looks to be connecting to ipv6 only. My ISP doesn’t route that, so no wonder it doesn’t work. Anyone know a way to tell java to not use IPv6?
openjdk7-java -Xmx1024M -Xms1024M -Djava.net.preferIPv4Stack=true -jar minecraft_server.jar nogui
Found it, thanks to ‘smag’ in #dragonflybsd.