mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1674] Minecraft domain to server stream #1250
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1250
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FurJorden on GitHub (Dec 22, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1674
Hello,
Is it possible to redirect an incoming domain for a Minecraft server like Test.domain.com:25565 to an internal ip like 192.168.2.15:25585?
With kind regards
@chaptergy commented on GitHub (Dec 23, 2021):
Yes and no. Routing based on the domain is only available for HTTP protocols or protocols which include SNI information, and not for TCP or UDP streams. Minecraft uses its own protocol based on TCP and does not include any SNI info. However routing based on ports is available. As long as you don't want multiple domains on port
25565, you can just use the port and ignore the domain (as long as the domain points to your npm instance). To do that you can create a stream host for port25565and forward it to your minecraft server (don't forget to expose port25565in your docker-compose as well).More advanced routing like forwarding
mc1.example.com:25565to1.2.3.4:25565andmc2.example.com:25565to5.6.7.8:25565is not possible for the reasons described above.@operinko commented on GitHub (Dec 23, 2021):
You'd be better off using SRV records to point different MC domains to certain ports.
So:
_minecraft._tcp.name TTL priority weight port targetExample:
_minecraft._tcp.server 30 0 5 25585 server.example.comThat effectively makes it so that if you put in "server.example.com" in your Minecraft client, it looks up the SRV record and fetches the port from that (25585 in this case), without the need to specify it in the address field.