<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sat Jan 11 07:47:15 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[BDS-9198] Bug - Bedrock server uses port 0 instead of the defined ones</title>
                <link>https://bugs.mojang.com/browse/BDS-9198</link>
                <project id="11700" key="BDS">Bedrock Dedicated Server</project>
                    <description>&lt;p&gt;Ubuntu 20.04&lt;/p&gt;

&lt;p&gt;The bedrock minecraft server tries to use port 0 for both ipv4 and ipv6 when started on a VPS server I own.&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
NO LOG FILE! - setting up server logging...
[2020-10-02 14:48:43 INFO] Starting Server
[2020-10-02 14:48:43 INFO] Version 1.16.40.2
[2020-10-02 14:48:43 INFO] Session ID aa262aba-f109-4d9f-92dc-8f8ace7c656c
[2020-10-02 14:48:43 INFO] Level Name: My World
[2020-10-02 14:48:43 INFO] Game mode: 1 Creative
[2020-10-02 14:48:43 INFO] Difficulty: 0 PEACEFUL
[2020-10-02 14:48:43 INFO] opening worlds/My World/db
[2020-10-02 14:48:47 INFO] IPv4 supported, port: 0
[2020-10-02 14:48:47 INFO] IPv6 supported, port: 0
[2020-10-02 14:48:47 ERROR] Network port occupied, can&apos;t start server.

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;as a reference, IPV6 is even disabled system wide so it shouldn&apos;t even say supported.&lt;/p&gt;

&lt;p&gt;I also tried to change multiple times the port but no changes, I can thus consider it a bug, it also happens when using docker.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;as a reference this is the output of ip addr&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
1: lo: &amp;lt;LOOPBACK,UP,LOWER_UP&amp;gt; mtu 65536 qdisc noqueue state UNKNOWN group &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc fq_codel state UP group &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; qlen 1000
    link/ether 00:16:3c:39:ae:af brd ff:ff:ff:ff:ff:ff
    inet 193.142.58.142/24 brd 193.142.58.255 scope global eth0
       valid_lft forever preferred_lft forever
3: docker0: &amp;lt;NO-CARRIER,BROADCAST,MULTICAST,UP&amp;gt; mtu 1500 qdisc noqueue state DOWN group &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;
    link/ether 02:42:0a:29:10:4d brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>Ubuntu 20.04</environment>
        <key id="376157">BDS-9198</key>
            <summary>Bug - Bedrock server uses port 0 instead of the defined ones</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="seledreams">THEO LAMCILAK</reporter>
                        <labels>
                    </labels>
                <created>Fri, 2 Oct 2020 15:57:44 +0200</created>
                <updated>Wed, 7 Oct 2020 09:40:04 +0200</updated>
                            <resolved>Wed, 7 Oct 2020 03:10:20 +0200</resolved>
                                    <version>1.16.40</version>
                                                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="822038" author="JIRAUSER556422" created="Wed, 7 Oct 2020 09:40:04 +0200"  >&lt;p&gt;I actually found a fix for my issue but that was more of a weird workaround&lt;/p&gt;

&lt;p&gt;and I didn&apos;t disable ipv6 for bedrock but system wide but weirdly it still detected ipv6&lt;/p&gt;

&lt;p&gt;I re-enabled IPV6 on my system then tried a different trick, I&apos;ve deleted the current bedrock server and re-extracted the server files then I made it so the IPV6 in the server properties was set to the port 999999&lt;/p&gt;

&lt;p&gt;after doing this the server worked and assigned a random port to the ipv6&lt;/p&gt;</comment>
                            <comment id="821913" author="ionicecko" created="Wed, 7 Oct 2020 03:08:52 +0200"  >&lt;p&gt;There is currently no way to disable IPv6 for BDS. It showing a port of 0 indicates it was unable to bind to a port, not that its binding to port 0.&lt;/p&gt;

&lt;p&gt;We had a previous report for this under &lt;a href=&quot;https://bugs.mojang.com/browse/BDS-1264&quot; title=&quot;Unable to launch - Network port occupied, can&amp;#39;t start server.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;BDS-1264&quot;&gt;&lt;del&gt;BDS-1264&lt;/del&gt;&lt;/a&gt; but it was closed as awaiting response as there was no clear steps to reproduce the issue. If you&apos;d like to head over there and provide details on how you disabled IPv6 (reproduction steps that outline any changes you made from a default install) in a comment the report will reopen.&lt;/p&gt;

&lt;p&gt;Please try to use the template I provided to the OP to make it easy to reproduce.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="254761">BDS-1264</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Unconfirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i1mm2v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>