# Using MakeCode while in a LAN game - connectivity issues

**URL:** <https://forum.makecode.com/t/using-makecode-while-in-a-lan-game-connectivity-issues/1942>\
**Category:** Minecraft\
**Created:** [May 4, 2020, 1:56am UTC](https://forum.makecode.com/t/using-makecode-while-in-a-lan-game-connectivity-issues/1942 "2020-05-04T01:56:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjkuzu](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@jjkuzu](https://forum.makecode.com/u/jjkuzu)\
**Post date:** [May 4, 2020, 1:56am UTC](https://forum.makecode.com/t/using-makecode-while-in-a-lan-game-connectivity-issues/1942/1 "2020-05-04T01:56:49Z")

</div>

Hello,  
I am able to run MakeCode fine while playing by myself. When I play on a LAN (two PCs) I can run the MakeCode server and connect to it in-game with /connect IP. Whenever I try to run my MakeCode creation, however, it shortly thereafter kicks me off the server (or kicks the other person off the server if I’m the one hosting the world and I try to use MakeCode) - whoever is the client to the minecraft lan game gets kicked out, no matter who is running MakeCode. If I then reconnect to the world and press the green play button again (MakeCode stays open while I get kicked off the Minecraft server), it will allow me to use the MakeCode creation in the game.

So for now what I have been doing is this: join the LAN game (hosted by the weaker PC because my faster PC can disconnect and join a game faster), connect MakeCode, create something in MakeCode, run it (by chat command, player action etc.), get kicked off the lan server, join the server again, press stop and play on MakeCode again and use the MakeCode creation. When I want to adjust the MakeCode creation I have to go through this again (get kicked out, adjust it, reconnect and use it).

Is this a setting on the LAN or in Minecraft or in MakeCode that causes this? Are there any better suggestions for workarounds? Many thanks!

---

<div class="post-metadata">

**Author:** ![OliverCarrillo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/olivercarrillo/32/8479_2.png) [@OliverCarrillo](https://forum.makecode.com/u/OliverCarrillo)\
**Post date:** [April 19, 2023, 9:52pm UTC](https://forum.makecode.com/t/using-makecode-while-in-a-lan-game-connectivity-issues/1942/2 "2023-04-19T21:52:07Z")

</div>

Have you tried contacting the MakeCode support team or checking their forums to see if others have  
experienced similar issues? It could be a bug or a setting that needs adjusting. In any case, it sounds like you’ve developed a decent workaround for now.

---

<div class="post-metadata">

**Author:** ![OliverCarrillo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/olivercarrillo/32/8479_2.png) [@OliverCarrillo](https://forum.makecode.com/u/OliverCarrillo)\
**Post date:** [April 20, 2023, 9:27pm UTC](https://forum.makecode.com/t/using-makecode-while-in-a-lan-game-connectivity-issues/1942/3 "2023-04-20T21:27:02Z")

</div>

Another possible solution could be running the MakeCode server on a separate device to see if that resolve the issue. You can also try the Javascript port for Minecraft at [https://minecraftforfreex.com/eaglercraft/](https://minecraftforfreex.com/eaglercraft/). Keep experimenting and trying different solutions!
