[BDS-1458] BDS forces different ports for ipv4 and ipv6 Created: 18/Sep/19  Updated: 04/Jan/24  Resolved: 04/Jan/24

Status: Resolved
Project: Bedrock Dedicated Server
Affects Version/s: 1.8.1.2, 1.14.32.1
Fix Version/s: None

Type: Bug
Reporter: Nico Rumpeltin Assignee: Unassigned
Resolution: Won't Fix Votes: 6
Labels: feature-check

Confirmation Status: Confirmed
ADO: 384882

 Description   

Bedrock Server forces to use different port nubers for ipv4 (19132) and ipv6 (19133). This can lead to connection problems.

Example 1: A connection to [ipv6-address]:19132 will always fail

Example 2: A connection to [ipv4-address]:19133 will always fail

 

Example Setup:
In my setup I use the domain example.com which resolves to the ipv4 AND the ipv6 address of my Server. In this setup every client can choose which protocol to use.
If trying to connect to example.com:19132 the connection will only succeed if the client chooses to use ipv4. Vice Versa for Port 19133.

So the client-side user needs to know which port to use, which is a difficult Task for a normal user.

Possible Solution:
Allow to use the same port number for ipv4 and ipv6 (as in java edition)



 Comments   
Comment by Tim Riker [ 04/Jan/24 ]

Closed as Won't Fix? This should be a simple fix. There could even be a command line option to specify the ports and allow the user to decide to pick the same ports.

Please reconsider fixing this.

Comment by Nico Rumpeltin [ 03/Feb/21 ]

UDPv4 and UDPv6 are technically different protocols. There are no "shared ports" beetwen this two protcols. But the whole idea behind dual stack is to use the same port number for the same application to hide the actual used protocol from the user.

So let the client-software decide which protocol to use and not the user.

 

Another possible workarround would be to NAT the UDPv6 port to the UDPv4 port number or vice versa. But this tends to be more difficult to setup than differnt dns records and a waste of ressources for the NAT.

Comment by Gregory Dunbar [ 02/Feb/21 ]

Yes in my opinion it's crazy to have separate ports for v4 and v6 for exactly the reason the OP describes. The only way around it is to have separate DNS records like v4.example.com resolving to the v4 address and v6.example.com resolving to the v6 address. Nobody does this it's insane. Please try to just have the server run one one port.

Comment by Tim Riker [ 22/Jun/20 ]

DNS uses port 53 on both tcp and udp for both IPv4 and IPv6 on Windows and Posix platforms.

In short, yes. it's very possible with tcp and/or udp.

Comment by IonicEcko [ 21/Jun/20 ]

I don't believe this is possible due to the use of UDP rather than TCP but could be completely wrong.

Generated at Sat Jan 11 07:17:54 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.