{
   "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
   "id": "311720",
   "self": "https://bugs.mojang.com/rest/api/2/issue/311720",
   "key": "BDS-4620",
   "fields": {
      "issuetype": "1",
      "project": "11700",
      "fixVersions": [],
      "resolution": "3",
      "customfield_10500": {
         "self": "https://bugs.mojang.com/rest/api/2/customFieldOption/10300",
         "value": "Unconfirmed",
         "id": "10300",
         "disabled": false
      },
      "customfield_12800": null,
      "customfield_12602": [],
      "customfield_12601": null,
      "customfield_12604": null,
      "customfield_12603": null,
      "customfield_12606": null,
      "customfield_12605": null,
      "customfield_12608": null,
      "resolutiondate": "2020-06-21T05:37:05.000+0300",
      "customfield_12607": null,
      "customfield_12609": null,
      "workratio": -1,
      "lastViewed": null,
      "watches": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-4620/watchers",
         "watchCount": 2,
         "isWatching": false
      },
      "created": "2020-04-23T22:45:25.000+0300",
      "customfield_12000": null,
      "customfield_12201": null,
      "customfield_12600": null,
      "labels": [],
      "customfield_11700": "{}",
      "versions": [
         "19406"
      ],
      "issuelinks": [
         {
            "id": "188668",
            "self": "https://bugs.mojang.com/rest/api/2/issueLink/188668",
            "type": "10102",
            "outwardIssue": "249803"
         },
         {
            "id": "188669",
            "self": "https://bugs.mojang.com/rest/api/2/issueLink/188669",
            "type": "10102",
            "outwardIssue": "254365"
         }
      ],
      "assignee": null,
      "updated": "2020-06-21T05:37:05.000+0300",
      "status": "5",
      "description": "I noticed an issue with the BDS when I was trying to run multiple instances on the same machine. Essentially, if you use the default ports, everything is better, however, if you change the server.properties to listen to any ports other than the defaults, it will listen to 4 ports, the 2 default ones and the 2 configured ones:\r\n\r\n\u00a0\r\n\r\nFor example - Server configured to listen to non-default ports 19134 and 19135\r\n\r\nserver.properties snippet\r\n\r\n\u00a0\r\n{code:java}\r\nserver-port=19134\r\nserver-portv6=19135{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nlog shows\r\n\r\n\u00a0\r\n{code:java}\r\n[2020-04-23 14:30:53 INFO] Starting Server\r\n[2020-04-23 14:30:53 INFO] Version 1.14.60.5\r\n[2020-04-23 14:30:53 INFO] Session ID 22bfa959-ee90-4c41-9c95-9a3516040217\r\n[2020-04-23 14:30:53 INFO] Level Name: DimitrovLand\r\n[2020-04-23 14:30:53 INFO] Game mode: 0 Survival\r\n[2020-04-23 14:30:53 INFO] Difficulty: 1 EASY\r\n[2020-04-23 14:30:53 INFO] Content logging enabled. Writing log to: ContentLog__Thursday__2020_April_23__14_30_53\r\n[2020-04-23 14:30:53 INFO] opening worlds/DimitrovLand/db\r\n[2020-04-23 14:30:55 INFO] IPv4 supported, port: 19134\r\n[2020-04-23 14:30:55 INFO] IPv6 supported, port: 19135\r\n[2020-04-23 14:30:55 INFO] IPv4 supported, port: 19132\r\n[2020-04-23 14:30:55 INFO] IPv6 supported, port: 19133{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nnetstat confirms that the two default ports AND the two configured ports are being opened\r\n\r\n\u00a0\r\n{code:java}\r\n/minecraft-bedrock# netstat -tulpna | grep 191\r\nudp 0 0 0.0.0.0:19132 0.0.0.0:* 6142/bedrock_server\r\nudp 0 0 0.0.0.0:19134 0.0.0.0:* 6142/bedrock_server\r\nudp6 0 0 :::19133 :::* 6142/bedrock_server\r\nudp6 0 0 :::19135 :::* 6142/bedrock_server{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nNow, if I change it to the defaults I get the following:\r\n\r\n\u00a0\r\n{code:java}\r\n[2020-04-23 14:39:43 INFO] opening worlds/DimitrovLand/db\r\n[2020-04-23 14:39:45 INFO] IPv4 supported, port: 19131\r\n[2020-04-23 14:39:45 INFO] IPv6 supported, port: 19132\r\n[2020-04-23 14:39:45 INFO] IPv4 supported, port: 51917\r\n[2020-04-23 14:39:45 INFO] IPv6 supported, port: 49167\r\n[2020-04-23 14:39:46 INFO] Server started.{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nWhile it shows 2 extra ports in logs, it's only listening to one extra random IPv4 port\r\n\r\n\u00a0\r\n{code:java}\r\n/minecraft-bedrock# netstat -tulpna | grep 191\r\nudp 0 0 0.0.0.0:19131 0.0.0.0:* 13508/bedrock_serve\r\nudp 0 0 0.0.0.0:51917 0.0.0.0:* 13508/bedrock_serve\r\nudp6 0 0 :::19132 :::* 13508/bedrock_serve{code}\r\n\u00a0",
      "customfield_11100": null,
      "customfield_11300": null,
      "customfield_11500": null,
      "customfield_12503": null,
      "customfield_12700": null,
      "customfield_12502": null,
      "customfield_12504": null,
      "attachment": [],
      "summary": "Server listens on more than 2 ports when server.properties is configured to use non-default ports.",
      "creator": "JIRAUSER471194",
      "reporter": "JIRAUSER471194",
      "customfield_10002": null,
      "customfield_12501": null,
      "customfield_12500": null,
      "customfield_11601": null,
      "customfield_11600": "0|i1bkpb:",
      "environment": "DISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=18.04\r\nDISTRIB_CODENAME=bionic\r\nDISTRIB_DESCRIPTION=\"Ubuntu 18.04.4 LTS\"",
      "customfield_11801": null,
      "customfield_11800": null,
      "customfield_11602": null,
      "customfield_11802": null,
      "comment": {
         "comments": [
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/311720/comment/736752",
               "id": "736752",
               "author": "ionicecko",
               "body": "We're tracking this issue as *BDS-1094 & BDS-3989*, so this ticket is being resolved and linked as a *duplicate*.\r\n\r\nPlease note though, you have raised this report under the wrong project, this project is for the Bedrock Dedicated Server software only. For bug reports related to Minecraft Bedrock please head over to the [Minecraft (Bedrock codebase) project|https://bugs.mojang.com/projects/MCPE/summary].\r\n\r\nIf you aren't already, please don't forget to use the [*+search feature+*|https://bugs.mojang.com/issues/?jql=project=MCPE], the less time volunteers spend linking duplicates the more time we have to update new reports.\r\n\r\nVoting on an existing report has a greater impact on getting the bugs most important to you fixed!\r\n\r\n*Quick Links*:\r\n\ud83d\udcd3 [Issue Guidelines|https://bugs.mojang.com/projects/BDS/summary] -- \ud83d\udcac [Community Support|https://discord.gg/58Sxm23] -- \ud83d\udce7 [Customer Support|https://help.minecraft.net/hc/en-us/requests/new] -- \u270d\ufe0f [Feedback and Suggestions|https://feedback.minecraft.net/] -- \ud83d\udcd6 [BDS Wiki|https://minecraft.gamepedia.com/Bedrock_Dedicated_Server] -- \ud83d\udcd6 [FAQs|https://help.minecraft.net/hc/en-us/articles/360035131651-Dedicated-Servers-for-Minecraft-on-Bedrock-]",
               "updateAuthor": "ionicecko",
               "created": "2020-06-21T05:37:05.392+0300",
               "updated": "2020-06-21T05:37:05.392+0300"
            }
         ],
         "maxResults": 1,
         "total": 1,
         "startAt": 0
      },
      "votes": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-4620/votes",
         "votes": 0,
         "hasVoted": false
      }
   },
   "changelog": {
      "startAt": 0,
      "maxResults": 5,
      "total": 5,
      "histories": [
         {
            "id": "1535888",
            "author": "JIRAUSER471194",
            "created": "2020-04-23T22:46:48.011+0300",
            "items": [
               {
                  "field": "description",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "I noticed an issue with the BDS when I was trying to run multiple instances on the same machine. Essentially, if you use the default ports, everything is fine, however, if you change the server.properties to listen to any ports other than the defaults, it will listen to 4 ports, the 2 default ones and the 2 configured ones:\r\n\r\n\u00a0\r\n\r\nFor example - Server configured to listen to non-default ports 19134 and 19135\r\n\r\nserver.properties snippet\r\n\r\n\u00a0\r\n{code:java}\r\nserver-port=19134\r\nserver-portv6=19135{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nlog shows\r\n\r\n\u00a0\r\n{code:java}\r\n[2020-04-23 14:30:53 INFO] Starting Server\r\n[2020-04-23 14:30:53 INFO] Version 1.14.60.5\r\n[2020-04-23 14:30:53 INFO] Session ID 22bfa959-ee90-4c41-9c95-9a3516040217\r\n[2020-04-23 14:30:53 INFO] Level Name: DimitrovLand\r\n[2020-04-23 14:30:53 INFO] Game mode: 0 Survival\r\n[2020-04-23 14:30:53 INFO] Difficulty: 1 EASY\r\n[2020-04-23 14:30:53 INFO] Content logging enabled. Writing log to: ContentLog__Thursday__2020_April_23__14_30_53\r\n[2020-04-23 14:30:53 INFO] opening worlds/DimitrovLand/db\r\n[2020-04-23 14:30:55 INFO] IPv4 supported, port: 19134\r\n[2020-04-23 14:30:55 INFO] IPv6 supported, port: 19135\r\n[2020-04-23 14:30:55 INFO] IPv4 supported, port: 19132\r\n[2020-04-23 14:30:55 INFO] IPv6 supported, port: 19133{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nnetstat confirms that the two default ports AND the two configured ports are being opened\r\n\r\n\u00a0\r\n{code:java}\r\n/minecraft-bedrock# netstat -tulpna | grep 191\r\nudp 0 0 0.0.0.0:19132 0.0.0.0:* 6142/bedrock_server\r\nudp 0 0 0.0.0.0:19134 0.0.0.0:* 6142/bedrock_server\r\nudp6 0 0 :::19133 :::* 6142/bedrock_server\r\nudp6 0 0 :::19135 :::* 6142/bedrock_server{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nNow, if I change it to the defaults I get the following:\r\n\r\n\u00a0\r\n{code:java}\r\n[2020-04-23 14:39:43 INFO] opening worlds/DimitrovLand/db\r\n[2020-04-23 14:39:45 INFO] IPv4 supported, port: 19131\r\n[2020-04-23 14:39:45 INFO] IPv6 supported, port: 19132\r\n[2020-04-23 14:39:45 INFO] IPv4 supported, port: 51917\r\n[2020-04-23 14:39:45 INFO] IPv6 supported, port: 49167\r\n[2020-04-23 14:39:46 INFO] Server started.{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nWhile it shows 2 extra ports in logs, it's only listening to one extra random IPv4 port\r\n\r\n\u00a0\r\n{code:java}\r\n/minecraft-bedrock# netstat -tulpna | grep 191\r\nudp 0 0 0.0.0.0:19131 0.0.0.0:* 13508/bedrock_serve\r\nudp 0 0 0.0.0.0:51917 0.0.0.0:* 13508/bedrock_serve\r\nudp6 0 0 :::19132 :::* 13508/bedrock_serve{code}\r\n\u00a0",
                  "to": null,
                  "toString": "I noticed an issue with the BDS when I was trying to run multiple instances on the same machine. Essentially, if you use the default ports, everything is better, however, if you change the server.properties to listen to any ports other than the defaults, it will listen to 4 ports, the 2 default ones and the 2 configured ones:\r\n\r\n\u00a0\r\n\r\nFor example - Server configured to listen to non-default ports 19134 and 19135\r\n\r\nserver.properties snippet\r\n\r\n\u00a0\r\n{code:java}\r\nserver-port=19134\r\nserver-portv6=19135{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nlog shows\r\n\r\n\u00a0\r\n{code:java}\r\n[2020-04-23 14:30:53 INFO] Starting Server\r\n[2020-04-23 14:30:53 INFO] Version 1.14.60.5\r\n[2020-04-23 14:30:53 INFO] Session ID 22bfa959-ee90-4c41-9c95-9a3516040217\r\n[2020-04-23 14:30:53 INFO] Level Name: DimitrovLand\r\n[2020-04-23 14:30:53 INFO] Game mode: 0 Survival\r\n[2020-04-23 14:30:53 INFO] Difficulty: 1 EASY\r\n[2020-04-23 14:30:53 INFO] Content logging enabled. Writing log to: ContentLog__Thursday__2020_April_23__14_30_53\r\n[2020-04-23 14:30:53 INFO] opening worlds/DimitrovLand/db\r\n[2020-04-23 14:30:55 INFO] IPv4 supported, port: 19134\r\n[2020-04-23 14:30:55 INFO] IPv6 supported, port: 19135\r\n[2020-04-23 14:30:55 INFO] IPv4 supported, port: 19132\r\n[2020-04-23 14:30:55 INFO] IPv6 supported, port: 19133{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nnetstat confirms that the two default ports AND the two configured ports are being opened\r\n\r\n\u00a0\r\n{code:java}\r\n/minecraft-bedrock# netstat -tulpna | grep 191\r\nudp 0 0 0.0.0.0:19132 0.0.0.0:* 6142/bedrock_server\r\nudp 0 0 0.0.0.0:19134 0.0.0.0:* 6142/bedrock_server\r\nudp6 0 0 :::19133 :::* 6142/bedrock_server\r\nudp6 0 0 :::19135 :::* 6142/bedrock_server{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nNow, if I change it to the defaults I get the following:\r\n\r\n\u00a0\r\n{code:java}\r\n[2020-04-23 14:39:43 INFO] opening worlds/DimitrovLand/db\r\n[2020-04-23 14:39:45 INFO] IPv4 supported, port: 19131\r\n[2020-04-23 14:39:45 INFO] IPv6 supported, port: 19132\r\n[2020-04-23 14:39:45 INFO] IPv4 supported, port: 51917\r\n[2020-04-23 14:39:45 INFO] IPv6 supported, port: 49167\r\n[2020-04-23 14:39:46 INFO] Server started.{code}\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nWhile it shows 2 extra ports in logs, it's only listening to one extra random IPv4 port\r\n\r\n\u00a0\r\n{code:java}\r\n/minecraft-bedrock# netstat -tulpna | grep 191\r\nudp 0 0 0.0.0.0:19131 0.0.0.0:* 13508/bedrock_serve\r\nudp 0 0 0.0.0.0:51917 0.0.0.0:* 13508/bedrock_serve\r\nudp6 0 0 :::19132 :::* 13508/bedrock_serve{code}\r\n\u00a0"
               }
            ]
         },
         {
            "id": "1665942",
            "author": "ionicecko",
            "created": "2020-06-21T05:36:48.111+0300",
            "items": [
               {
                  "field": "security",
                  "fieldtype": "jira",
                  "from": "10318",
                  "fromString": "Minecraft - Private",
                  "to": null,
                  "toString": null
               }
            ]
         },
         {
            "id": "1665943",
            "author": "ionicecko",
            "created": "2020-06-21T05:37:05.394+0300",
            "items": [
               {
                  "field": "Link",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "BDS-1094",
                  "toString": "This issue duplicates BDS-1094"
               }
            ]
         },
         {
            "id": "1665945",
            "author": "ionicecko",
            "created": "2020-06-21T05:37:05.428+0300",
            "items": [
               {
                  "field": "Link",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "BDS-3989",
                  "toString": "This issue duplicates BDS-3989"
               }
            ]
         },
         {
            "id": "1665947",
            "author": "ionicecko",
            "created": "2020-06-21T05:37:05.482+0300",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "3",
                  "toString": "Duplicate"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         }
      ]
   }
}