Question: how to play minecraft with friends on different wifi pc?
Answer: In the escape menu there is an option for Open to LAN . Click it, choose the basic settings for your LAN world, then click Start LAN World . Minecraft will tell you that it's hosting the game on a specific port. Write that port down because your friend(s) will need it to connect to you.