How do you find your port for Minecraft LAN worlds?

I've looked at a lot of websites and the ports are either outdated or don't show how to find it. I know how to get into the cmd thing and all that, but I cannot find my port for the life of me. Is it always the same thing or randomized?


If you hit / inside the world just after you open it to LAN, it will show you what port it opened on.


As I stated in my answer on your other (related) question, if you truly mean LAN worlds, you do not need to know this information. LAN worlds automatically configure this for you. Your port is shown directly next to the local IP address:

enter image description here

Anything behind a : in an address specifies a port number.


Press T to open the console. You will see recent messages - like the one telling you your server's port.