How to play my Photon pun game with friends?
I have been working on a FPS multiplayer game for a while now. But there is one problem. I don't know how to play it with my friends. Can I just send it to my friends and we can play together, or do I have to use Hamachi or Port forward my router. And also, what IP do I have to set to the "Server" section in "Photon Server Settings"? Public IP or ipv4 or something else? I would appreciate any help!
Best Answer
-
Do I have to change any settings in "Photon Server Settings" item in my project?
Usually no. Only if there is an issue with them? There is a doc about the settings.
We got a Matchmaking Guide which helps find exactly the games you'd expect to find.
0
Answers
-
hi, @Olsen
Exciting moment :)
yes, you have to make your servers accessible for your friends either by putting your server to some VM or by opening ports on your router.
Next you have to make sure that NameServer and GS return public ip addreses. NameServer should return public IP for master server, GS for him self. in case of port forwarding you have to use address that PhotonControl says to you.
you need update NameServer.json and GameServer.xml.config. in latter you have to update PulibcServerIp setting.
once you do that it should work
best,
ilya
0 -
I really don't understand any of that... Is there some kind of video to show these steps. Also, im not hosting the server on my computer, im using Photon Cloud.
0 -
Thanks and sorry for not mentioning that I use photon cloud! Do I have to change any settings in "Photon Server Settings" item in my project? Example "Port", "Server", "Use name server"
0 -
Do I have to change any settings in "Photon Server Settings" item in my project?
Usually no. Only if there is an issue with them? There is a doc about the settings.
We got a Matchmaking Guide which helps find exactly the games you'd expect to find.
0 -
Thank you!
0