Hypixel.net is both their website and mc server adress.

Is it just that https is on port 443 and minecraft is on port 25565?

And if that is the case, can i do something similar by making a reverse proxy have two seperate server blocks for the one domain, with different ports?

  • @Dust0741
    link
    English
    -144 months ago

    Yes, and Minecraft is TCP not http

    • Kairos
      link
      fedilink
      English
      284 months ago

      HTTP is TCP. And I’m pretty sure Minecraft uses UDP?

      • @Dust0741
        link
        English
        114 months ago

        Oops you are right.

        A quick search said mc uses tcp

        • @zzx
          link
          English
          104 months ago

          Most games use UDP as the latency induced by TCP is unacceptable for games

          • ɐɥO
            link
            fedilink
            English
            54 months ago

            Minecraft java, for some reason, doesnt

            • account abandoned
              link
              English
              1
              edit-2
              4 months ago

              Minecraft is a building game where latency does not matter as much as in shooter games. For example, if your latency is 200 ms, you can play Minecraft smoothly, while in FPS games it is unacceptable 😉

              Edit: In addition, the Minecraft server can use UDP protocol to serve the server status (but only for this purpose and it is not, nor has it ever been used by the game client). In the past, it was used to display the number of players on websites with server listings, but this can be considered deprecated now – today they use the same protocol as the game client.

        • Kairos
          link
          fedilink
          English
          1
          edit-2
          4 months ago

          QUIC? Yeah I know. Interesting system.

    • Possibly linux
      link
      fedilink
      English
      104 months ago

      You are sort of right

      TCP is on layer 4 of the OSI model. Http is layer 7 which runs on top of layer 4 (TCP)

      In sort Minecraft and http are both tcp

    • @[email protected]
      link
      fedilink
      English
      4
      edit-2
      4 months ago

      TCP is the way that you send information, HTTP is what it means.

      The difference, in your case, is the port. You can’t CAN have TCP and UDP on the same port, but you can’t have the same protocol on the same port.

      edit: I didn’t knew you could have different transfer protocols on the same port, ty!

      • @peregus
        link
        English
        124 months ago

        You can’t have TCP and UDP on the same port.

        Why not? They are 2 completely separated set of ports. You can have a service listening on port 88 TCP while having another listening on port 88 UDP and they never know about each other.

      • Cousin Mose
        link
        fedilink
        English
        44 months ago

        You can’t have UDP and TCP on the same port? I don’t think that makes sense, I have DNS listening on UDP and TCP both on port 53.

              • @peregus
                link
                English
                94 months ago

                What’s there to laugh about? DNS protocol uses both ports: TCP for zone transfer and UDP for queries.

              • Cousin Mose
                link
                fedilink
                English
                5
                edit-2
                4 months ago

                Yes I have a DNS service listening on both UDP and TCP to respond to DNS queries from clients using the standard DNS port; crazy me. 🤪