P2P network games/apps: Good choice for a “battle.net”-like matching server

前端 未结 6 1356
暖寄归人
暖寄归人 2021-02-06 10:56

I\'m making a network game (1v1) where in-game its p2p - no need for a game server.

However, for players to be able to \"find each other\", without the need to coordinat

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-06 11:45

    There's nothing that every net connection will support. STUN is probably good, UPnP can work for this.

    However, it's rumored that most firewalls can be enticed to pass almost anything through UDP port 53 (DNS). You might have to argue with the OS about your access to that port though.

    Also, check out SIP, it's another protocol designed for this sort of thing. With the popularity of VOIP, there may be decent built-in support for this in more firewalls.

    If you're really committed to UDP, you might also consider tunneling it over HTTP.

提交回复
热议问题