bhopahk / lanbroadcaster Goto Github PK
View Code? Open in Web Editor NEWA fork of ruany's LANBroadcaster with velocity and sponge support.
License: MIT License
A fork of ruany's LANBroadcaster with velocity and sponge support.
License: MIT License
I am sitting in a scenario that exists with two LAN segment, bridged with a static route in both way. But the server has multiple interface and I suspect the LANBroadcaster is picking up the primary one, instead of the LAN IP address.
Therefore I suggest to make broadcast domain configurable, to specify which LAN interface/address to broadcast.
Java logger shows messages as errors which can be confusing. It should be changed to an slf4j logger.
I added your LANBroadcaster plugin to my Velocity plugins folder and when I search for LAN games on my 1.18.1 clients on my LAN nothing shows up. All windows and Linux ports / firewalls are open, I am able to ping the server form the LAN clients without issue.
I am able to connect to the velocity proxy via a WAN playit.gg tunnel I have setup that points to the same LAN IPv4 address Velocity is configured to, so I know the server address and port configuration is good.
I've also tried just entering the server IPv4 address & port into the clients directly but that won't connect.
I get an error when attempting to connect:
[11:51:34] [Client thread/INFO] [minecraft/GuiConnecting]: Connecting to 10.0.0.168, 25565
11:51:35.014
[11:51:35] [Server Connector #2/ERROR] [minecraft/GuiConnecting]: Couldn't connect to server
11:51:35.014
io.netty.channel.AbstractChannel$AnnotatedConnectException: syscall:getsockopt(..) failed: Connection refused: 10.0.0.168/10.0.0.168:25565
11:51:35.014
at io.netty.channel.unix.Socket.finishConnect(..)(Unknown Source) ~[Socket.class:4.1.9.Final]
11:51:35.014
Caused by: io.netty.channel.unix.Errors$NativeConnectException: syscall:getsockopt(..) failed: Connection refused
while starting up velocity there was an error posting event ProxyInitializeEvent.
Log:
java.lang.NoClassDefFoundError: net/kyori/text/serializer/ComponentSerializers
at me.bhop.lanbroadcaster.velocity.LANBroadcasterVelocity.onProxyInit(LANBroadcasterVelocity.java:30) ~[?:?]
at net.kyori.event.asm.generated.d810a2f6d7.LANBroadcasterVelocity-onProxyInit-ProxyInitializeEvent-2.invoke(Unknown Source) ~[?:?]
at net.kyori.event.method.SimpleMethodSubscriptionAdapter$MethodEventSubscriber.invoke(SimpleMethodSubscriptionAdapter.java:148) ~[proxy.jar:1.0.6-SNAPSHOT (git-5c6163d8-b195)]
at net.kyori.event.SimpleEventBus.post(SimpleEventBus.java:107) ~[proxy.jar:1.0.6-SNAPSHOT (git-5c6163d8-b195)]
at com.velocitypowered.proxy.plugin.VelocityEventManager.fireEvent(VelocityEventManager.java:136) ~[proxy.jar:1.0.6-SNAPSHOT (git-5c6163d8-b195)]
at com.velocitypowered.proxy.plugin.VelocityEventManager.lambda$fire$0(VelocityEventManager.java:117) ~[proxy.jar:1.0.6-SNAPSHOT (git-5c6163d8-b195)]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:830) [?:?]
Caused by: java.lang.ClassNotFoundException: net.kyori.text.serializer.ComponentSerializers
at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass0(PluginClassLoader.java:66) ~[proxy.jar:1.0.6-SNAPSHOT (git-5c6163d8-b195)]
at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:43) ~[proxy.jar:1.0.6-SNAPSHOT (git-5c6163d8-b195)]
at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.