Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Server & Community Management' started by SammyPlaysYT, May 22, 2017.
I need help, How to point my domain to my web server and my minecraft server?
Use a SRV for the mc server
My domain is from namecheap and its already pointed to the shared web hosting that i got how can i point my mc server to it
Do you have a dedicated ip? If so, you just need to make an A record that points to your server's ip. If not, I suggest checking out this video.
I'm already using my domain for my website and i cant change the nameserver & dns anymore. how could i point my mc server to my domain too.
Is the webserver on the same machine/ip as the mc server? If so, you're already done.
If not, then setup a subdomain and point it to the mc server ip. Simple.
www.mywebsite.com -> 18.104.22.168
mc.mywebsite.com -> 22.214.171.124
Nope its not running in the same machine
Ok. So read the rest of my post for instructions...
Who do you host off of?
Where to add the sub domain?
Simply create an A Record pointing to the IP address of your server, that'll create "mc.example.com" (for example). If your IP needs a port, you will connect via "mc.example.com:2345". If you want to avoid the port, you'll set up an SRV Record.
Also, if your servers port is 25565, you will not need to worry about entering one.
Who is your host??
Website & Domain: Namecheap
MC Server: Anvilnode
Who is your WEBSITE host
1) Login to NameCheap.
2) Click "manage" to the far right of your domain name
3) Click "Advanced DNS" tab at the right
4) Find the "Add New Record" button underneath all your records. Looks like this:
5) Choose "A Record" from the dropdown
6) Host you should enter "mc" or whatever you want the subdomain to be.
7) Enter the IP address to the MC server
8) Click the green checkmark to save.
Now its a waiting game. Propagation could take up to 72 hours to complete.
Namecheap, I'm using shared hosting.
How can I link my domain name to a Minecraft server - Namecheap
I would suggest creating an SRV which is more secure for DDOS attacks (This can only be done to the minecraft server)
For the webhost you need an A record pointing to your IP
I'd suggest to use this gif:
I did this from my private cPanel server but it should be similair as the cpanel hosting of namecheap
If your website is on one server, on one IP.
And your minecraft is on another server, on another IP.
Then realise that the website is on port 80/443, and that minecraft is on 25565 or whatever you set it to.
You can not have 1 unique domain pointing to multiple IP addresses. For what you want.
You can force the domain to use www.example.com on port 80/443 on one IP, the IP of the host
And set the minecraft to example.com for port 25565 or whatever, on the other IP, IP of the server where MC runs on.
On the MC server you could run a small httpd on port 80/433 to redirect with 301 to www.* which will then have the user end up on the other IP, other host.