When I do not use (Use Name Server) my connection is directly disconnected

Options

This is my server configuration

This is my unity settings

I've seen many examples, but I don't know what's going on. Am I missing any steps?

I need help

Answers

  • Tobias
    Options

    Your port is incorrect. 5056 is the UDP port of the Game Server but you either connect to the Name Server or Master Server as first step. Try 5055.

  • kkdsamn
    Options

    Of course, I tried 5055 but it still didn't work.

    I started the self-hosting server on a different computer, and I set up my network and ports to make it accessible over the Internet.

  • Tobias
    Options

    Hm. Hard to say.

    You setup port forwarding on the router and configured the firewall?

  • kkdsamn
    Options

    Yes, I opened the port and IP .

    I don't understand what you said about configuring the firewall. Could you explain it in detail ? Is it to shut it down?

  • Tobias
    Options

    Have to say: If you don't know what a firewall does, I am not confident you should host the server yourself.

    I can not really help with that, as there are a lot of firewall products. I don't know yours and overall, it is likely better explained by whoever produces it. In doubt, check Windows Firewall.

    You may have to establish port forwarding on your router.

    Sorry, we can't explain all of that. It's something we consider prerequisite to hosting Photon Server. A little is explained in the docs.