Me and my friend have identical mods and the same wifi, however strangly our ip addresses are different. I im not sure how to use the port number, any help?
* Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
Every_Ocelot71032025-12-17 15:49
connect to a vpn then have your friend connect to the same vpn, or just use essential mod, mcwifipnp
More_Cantaloupe23942025-12-17 17:13
OMG I have been searching through reddit for hours and it wont work! Nothing wont! I have tried port only, Ip:Port, stopping the firewall, IDk what to do!
postpunkmamma2025-12-17 18:47
Use [e4mc](https://www.curseforge.com/minecraft/mc-mods/e4mc) to share your world, or you can use [Zerotier](https://www.zerotier.com/) as a private lan with your friends. If you use Zerotier make sure you and your friend set your interface metric to 1 in your network adapter configuration.
To use port numbers in minecraft, when you add a server or use direct connect its ip:port, Also, Lan will only work if both devices are on the same network, so as long as both devices are connected to the same router lan should work
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
To use port numbers in minecraft, when you add a server or use direct connect its ip:port, Also, Lan will only work if both devices are on the same network, so as long as both devices are connected to the same router lan should work