Just a single question, how to open a port to TCP and UDP in the Servers 2.0. I use DarkRift2 for Network, and this "engine" uses one port with these two protocols.
Just a single question, how to open a port to TCP and UDP in the Servers 2.0. I use DarkRift2 for Network, and this "engine" uses one port with these two protocols.
If you're using the GameManager to add server builds, you can configure whatever ports you need and add more as needed.
https://i.imgur.com/2oWwhe0.png
If you're using custom containers, you can configure/add whatever ports you need through the API.
I need to open the same port to both TCP and UDP, not different ports.
What happens if you put in the same number for both?
Error Message:
Hmmm... so while apparently it's a bug that the GameManager doesn't allow you to do this, you can accomplish this by creating the build with the Multiplayer API (see my second photo above). That will create a new build with whatever ports you add, even if they are the same. (See here: https://i.imgur.com/NBFon8L.png)
Nice, Brandon, i will try it and let you know about it.
Hi, I am having the same issue (Also using Darkrift). Is there a more recent fix for this or is a custom container still the only way to use the same port for TCP/UDP?
You can likely use the CreateBuildWithManagedContainer to do what GameManager does but pass in two identical ports. This will spare you using a Linux container, but you'll have to do most of the work manually.
Hi @Brandon Phillips, I have attempted to manually create the build however I get the same issue through using CreateBuildWithManagedContainer: Error: Two or more ports specified have the same name. Duplicate names are not allowed in port configuration. Any suggestions on what to do here?
@projecthyperdrive
Hello there, I also use DarkRift2 and have problem like you, DarkRift2 uses same port for tcp and udp, have you any solution about it?
Thanks
Any updates on this? Thanks
unfortunately no, this cannot be done because of the way Azure Load Balancer works. Doesn't your networking library allow to configure separate port for TCP and UDP?
6 People are following this question.