#[1.21.8] Networking Test In One Computer?

11 messages · Page 1 of 1 (latest)

proven comet
#

My goal is send the packet from server to every client in the game.

I'm currently using Intellij IDEA and test my mod with ./gradlew runClient that temporary open minecraft client with some random name like Player111. And I also open the second minecraft client with real launcher. So it means, I run two minecraft client in one computer.

when I send a packet with **payload **things (Networking method after 1.20.5 ) to both clients , then client that receiving the packet is always the client that running in the temporary minecraft client (./gradlew runClient), not real launcher client.

So is this normal that only temporary client receiving the packet?
So if I bake the mod and install in the public server, and play with my friend, then both me and my friend can receive the packet?

I'm so confusing either my code is wrong or misunderstand about networking system?

versed epoch
#

yes. the instance from the vanilla launcher is not connected to the server you're using and it does not have the mod to receive the packet

#

actually even if you're connected to the server, it should disconnect because it doesn't have the client mod to process the received packet

#

(i might be wrong about the disconnect though)

proven comet
versed epoch
#

yes. both the server and clients need the mod

#

for testing purposes it's possible to launch multiple client instances from your IDE itself

proven comet
#

Is that possible running multiple client in my IDE??

versed epoch
#

yes

proven comet
#

Oh I have to try it!! Thx