{
   "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
   "id": "310604",
   "self": "https://bugs.mojang.com/rest/api/2/issue/310604",
   "key": "BDS-4552",
   "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-05-27T11:51:47.000+0300",
      "customfield_12607": null,
      "customfield_12609": null,
      "workratio": -1,
      "lastViewed": null,
      "watches": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-4552/watchers",
         "watchCount": 1,
         "isWatching": false
      },
      "created": "2020-04-22T18:59:18.000+0300",
      "customfield_12000": null,
      "customfield_12201": null,
      "customfield_12600": null,
      "labels": [],
      "customfield_11700": "{}",
      "versions": [
         "19406"
      ],
      "issuelinks": [
         {
            "id": "181582",
            "self": "https://bugs.mojang.com/rest/api/2/issueLink/181582",
            "type": "10102",
            "outwardIssue": "254365"
         }
      ],
      "assignee": null,
      "updated": "2020-05-27T11:51:47.000+0300",
      "status": "5",
      "description": "I am running a bedrock server on my Windows 10 computer and tried to change the port in the config to run multiple servers at once. I restarted the server and this is what happened:\r\n\r\n\u00a0\r\n{code:java}\r\nNO LOG FILE! - setting up server logging...\r\n[2020-04-22 17:53:36 INFO] Starting Server\r\n[2020-04-22 17:53:36 INFO] Version 1.14.60.5\r\n[2020-04-22 17:53:36 INFO] Session ID ####################\r\n[2020-04-22 17:53:36 INFO] Level Name: Bedrock level\r\n[2020-04-22 17:53:36 INFO] Game mode: 0 Survival\r\n[2020-04-22 17:53:36 INFO] Difficulty: 1 EASY\r\n[2020-04-22 17:53:36 INFO] opening worlds/Bedrock level/db\r\n[2020-04-22 17:53:37 INFO] IPv4 supported, port: 19134 <- my IPv4 port\r\n[2020-04-22 17:53:37 INFO] IPv6 supported, port: 65535 <- my IPv6 port\r\n[2020-04-22 17:53:37 INFO] IPv4 supported, port: 19132 <- default IPv4 port\r\n[2020-04-22 17:53:37 INFO] IPv6 supported, port: 19133 <- default IPv6 port\r\n[2020-04-22 17:53:37 INFO] Server started.{code}\r\n\u00a0\r\n\r\nIn my server.properties file I have this:\r\n\r\n\r\n\r\n\u00a0\r\n{code:java}\r\nserver-port=19134\r\n# Which IPv4 port the server should listen to.\r\n# Allowed values: Integers in the range [1, 65535]\r\nserver-portv6=65535\r\n# Which IPv6 port the server should listen to.\r\n# Allowed values: Integers in the range [1, 65535]\r\n\r\n{code}\r\n\u00a0I tried to reset the config file and to re-download the server software, but nothing worked.\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 always listens on port 19132 even if another port is set",
      "creator": "timonnet99@gmail.com",
      "reporter": "timonnet99@gmail.com",
      "customfield_10002": null,
      "customfield_12501": null,
      "customfield_12500": null,
      "customfield_11601": null,
      "customfield_11600": "0|i1bdtb:",
      "environment": "Windows 10 Pro",
      "customfield_11801": null,
      "customfield_11800": null,
      "customfield_11602": null,
      "customfield_11802": null,
      "comment": {
         "comments": [
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/310604/comment/679276",
               "id": "679276",
               "author": "JIRAUSER471505",
               "body": "Are you able to connect using those ports? Whenever my server starts up it shows me 4 different port numbers but the last two always seem to be random and i cannot connect using them.\r\n\r\n\u00a0\r\n{noformat}\r\n07:09:45\r\nIPv4 supported, port: 19132\r\nIPv6 supported, port: 19133\r\nIPv4 supported, port: 37149\r\nIPv6 supported, port: 45605\r\n\r\n...\r\n\r\n\r\n07:18:46\r\nIPv4 supported, port: 19132\r\nIPv6 supported, port: 19133\r\nIPv4 supported, port: 56653\r\nIPv6 supported, port: 44271{noformat}",
               "updateAuthor": "JIRAUSER471505",
               "created": "2020-04-24T17:29:12.104+0300",
               "updated": "2020-04-24T17:35:18.657+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/310604/comment/683710",
               "id": "683710",
               "author": "timonnet99@gmail.com",
               "body": "Yes, I am able to connect using these ports and it is impossible to run 2 servers at once.",
               "updateAuthor": "timonnet99@gmail.com",
               "created": "2020-04-29T15:41:18.591+0300",
               "updated": "2020-04-29T17:04:55.094+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/310604/comment/709036",
               "id": "709036",
               "author": "ionicecko",
               "body": "We're going to be tracking this issue as *BDS-3989*, so this ticket is being resolved and linked as a *duplicate*.\r\n\r\nPlease feel free to comment with any information you believe is missing from the report and previous comments :)\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-05-27T11:51:37.155+0300",
               "updated": "2020-05-27T11:51:37.155+0300"
            }
         ],
         "maxResults": 3,
         "total": 3,
         "startAt": 0
      },
      "votes": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-4552/votes",
         "votes": 1,
         "hasVoted": false
      }
   },
   "changelog": {
      "startAt": 0,
      "maxResults": 3,
      "total": 3,
      "histories": [
         {
            "id": "1604469",
            "author": "ionicecko",
            "created": "2020-05-27T11:49:35.057+0300",
            "items": [
               {
                  "field": "Comment",
                  "fieldtype": "jira",
                  "from": "*Original Description by [~Jahus]:*\r\nFrom {{server.properties}}:\r\n\r\nserver-port=19131\r\nserver-portv6=19134\r\n\r\nWhen server is ran:\r\n\r\n{{\u2026 }}{{INFO] IPv4 supported, port: 19131}}\r\n{{\u2026 }}{{INFO] IPv6 supported, port: 19134}}\r\n{{\u2026 }}{{INFO] IPv4 supported, port: 19132}}\r\n{{\u2026 }}{{INFO] IPv6 supported, port: 19133}}\r\n{{\u2026 }}{{INFO] Server started.}}\r\n\r\nAs you can see, the server ran on defined ports, but also on default ones.\r\n\r\nIt looks like the server always runs 2 other ports after running on the ones defined in {{server.properties}}.\r\n\r\nIn instance, if you set default ports in {{server.properties}}, the server adds two random ports.\r\n\r\nExample:\r\n\r\n{{\u2026 }}{{INFO] IPv4 supported, port: 19131}}\r\n{{\u2026 }}{{INFO] IPv6 supported, port: 19134}}\r\n{{\u2026 }}{{INFO] IPv4 supported, port: 42484}}\r\n{{\u2026 }}{{INFO] IPv6 supported, port: 54985}}\r\n{{\u2026 }}{{INFO] Server started.}}\r\n\r\nI don't see why it should do such a thing. Especially that if the ports are random, we can't create a proper firewall rule for them.\r\n\r\nFinally, I want to point out that this behavior is new and wasn't present in {{1.11.2.1}}. Here is a typical output from the latter:\r\n\r\n{{\u2026 }}{{INFO] IPv4 supported, port: 19131}}\r\n{{\u2026 }}{{INFO] IPv6 supported, port: 19134}}\r\n{{\u2026 }}{{INFO] Server started.}}\r\n\r\nThis issue is preventing me from launching 2 servers as services; one on default ports (needed) and another on other ports because the one that doesn't use default port may occupy default ports if ran first. This would make the other server unable to run because the ports are already in use.",
                  "fromString": null,
                  "to": null,
                  "toString": null
               }
            ]
         },
         {
            "id": "1604472",
            "author": "ionicecko",
            "created": "2020-05-27T11:51:47.936+0300",
            "items": [
               {
                  "field": "Link",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "BDS-3989",
                  "toString": "This issue duplicates BDS-3989"
               }
            ]
         },
         {
            "id": "1604474",
            "author": "ionicecko",
            "created": "2020-05-27T11:51:47.939+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"
               }
            ]
         }
      ]
   }
}