How does hypixel have their website and minecraft server on their root domain? (I would like to do something similar) - eviltoast

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?

  • SteveTech@programming.dev
    link
    fedilink
    English
    arrow-up
    19
    ·
    2 days ago

    TCP and UDP can listen on the same port, DNS is a great example of such. You’d generally need it to be part of the same process as ports are generally bound to the same process

    They don’t even need to be the same process. I’m pretty sure that’s just a common practice if something needs both protocols, but there’s nothing stopping you from having a web server on TCP 443 and a VPN server on UDP 443. Ports are an abstraction brought by each protocol, they aren’t in anyway related.

    • catloaf@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      16 hours ago

      Some protocols, like ICMP, don’t have the concept of ports at all!