I host a small server. I bought a .com so my players wouldn't have to type in an ip. I figured out how to redirect my domain to the ip (I changed the @ variable). I would really appreciate it if someone would walk me through the steps to turn that same web address into a web site as well, so if someone types it into minecraft they're still sent to the server, but when the same address is typed into a web browser they're sent to a website.
I searched the forums and could only find a couple posts on this, none of them were very clear.
I host a small server. I bought a .com so my players wouldn't have to type in an ip. I figured out how to redirect my domain to the ip (I changed the @ variable). I would really appreciate it if someone would walk me through the steps to turn that same web address into a web site as well, so if someone types it into minecraft they're still sent to the server, but when the same address is typed into a web browser they're sent to a website.
I searched the forums and could only find a couple posts on this, none of them were very clear.
Thanks in advance!
Are you looking for a website that has just any content? Or are you looking to have a webbrowser based minecraft running on that .com?
You can host a website by installing the apache http server. In debian / ubuntu, you do "sudo apt-get install apache2" or "sudo yum install apache2" for fedora / centos. For windows, you go to the apache website and download it http://httpd.apache.org/
You can host a website by installing the apache http server. In debian / ubuntu, you do "sudo apt-get install apache2" or "sudo yum install apache2" for fedora / centos. For windows, you go to the apache website and download it http://httpd.apache.org/
I'm looking to host a website for our server, so that the web address is able to direct people to the game when they enter it into the multiplayer section, and the website when they enter it into a browser.
I'm hosting through Godaddy, so what I'm looking for is what do I need to do to direct the same web address to both locations, depending where you enter it.
If you have your domain set to go to your home IP, where you run your Minecraft server, you'll have to download and install something like MAMP or XAMPP to run a webserver on that computer as well.
Default website port is 80, so you'll have to be sure to forward that in your router just as you did for Minecraft. As long as you use default ports, the domain will take people to the Minecraft server when used in game and it'll take them to your website when used in their browser.
If you want to have the minecraft server running from your home, and the website running from go-daddy, you could do a subdomain.
For example, you could have your minecraft server running on minecraft.mydomain.com, and then mydomain.com would point to go daddy with minecraft.mydomain.com pointing to your minecraft server.
Or you could set up a redirect. Installing apache or whatever webserver you want, you can set your webserver up so that any time it gets a connection, it automatically redirects people to your godaddy page.
It's not a good idea to use MAMP or XAMPP as a live server.
If you buy hosting with a company like you said you can point your main site at them (thesite.com) then as suggested above use a subdomain to point to the minecraft server (play.thesite.com or minecraft.thesite.com, etc).
It's pretty much impossible to do what you are wanting to do with a normal registrar. A domain can only point to a single IP address. The only way to really do what you want to do is either use a subdomain like previously mentioned, or be running a server capable of redirecting port 25565, but godaddy is not going to do that for shared hosting, only on a dedicated machine or on a VPS can this be done.
Apache isn't going to touch anything with port 25565 unless that's the port that Apache is running on.
This can be solved with, as other people have been saying, a subdomain, or a simple redirect from your server.
That's how you'd have to do it if you had apache/nginx/lighttpd running alongside Minecraft and wanted to use the same IP/URL for the site and the server.
Run the http daemon on default port 80 so visiting the URL/IP in a browser brings up the website.
Run the Minecraft server on default port 25565 so putting the URL/IP in the game takes you to the server.
There are some routing tricks you can do to send port traffic to different IPs but you'd have to do some pretty specific stuff and have an external routing solution that gets the requests prior to the server(s).
Quote from hoddie54 »
A-Record!
Add an A-record for mc.example.com or even example.com if you don't want webhosting that points to your real IP address. Simple as!
(note: your domain registrar must allow A-records)
(Note2: if they do, don't change name servers)
That doesn't help if they want web/mc running on the same url/ip, as the OP states... but it is the way most people do it.
I searched the forums and could only find a couple posts on this, none of them were very clear.
Thanks in advance!
Are you looking for a website that has just any content? Or are you looking to have a webbrowser based minecraft running on that .com?
You can host a website by installing the apache http server. In debian / ubuntu, you do "sudo apt-get install apache2" or "sudo yum install apache2" for fedora / centos. For windows, you go to the apache website and download it http://httpd.apache.org/
I'm looking to host a website for our server, so that the web address is able to direct people to the game when they enter it into the multiplayer section, and the website when they enter it into a browser.
I'm hosting through Godaddy, so what I'm looking for is what do I need to do to direct the same web address to both locations, depending where you enter it.
Default website port is 80, so you'll have to be sure to forward that in your router just as you did for Minecraft. As long as you use default ports, the domain will take people to the Minecraft server when used in game and it'll take them to your website when used in their browser.
w: minecraft.cm | e: [email protected] | t: @minecraft_cm | reviews
For example, you could have your minecraft server running on minecraft.mydomain.com, and then mydomain.com would point to go daddy with minecraft.mydomain.com pointing to your minecraft server.
Or you could set up a redirect. Installing apache or whatever webserver you want, you can set your webserver up so that any time it gets a connection, it automatically redirects people to your godaddy page.
If you buy hosting with a company like you said you can point your main site at them (thesite.com) then as suggested above use a subdomain to point to the minecraft server (play.thesite.com or minecraft.thesite.com, etc).
Latest MC video (forum link): http://www.minecraftforum.net/forums/show-your-creation/videos/lets-plays/2390805
So basically, what I'm hearing is if I want one domain name to be both my website and my ip then I'll have to host my own site and redirect the ports?
Thats only going to work on a VPS or Dedicated host. If you have a deciated host then there you go :tongue.gif:.
Is it all that hard for your players to type "minecraft.website.com" vs "website.com"?
I want:
But that returns a 500 error. Could anyone halp? :\
Naxville - 24/7 Server - Economy - Free Build - Protect Bases - Join Clans - Have Fun - Exclamation Marks!!
http://www.naxville.com/
This can be solved with, as other people have been saying, a subdomain, or a simple redirect from your server.
Where your "site" record redirects to your actual web hosting.
Before I go scourging the internet again, does anyone know how to detect if minecraft's trying to talk to a PHP file?
Just wondering how the pros do it, because apparently I can't figure out how to do a one domain for both website and server.
Naxville - 24/7 Server - Economy - Free Build - Protect Bases - Join Clans - Have Fun - Exclamation Marks!!
http://www.naxville.com/
Run the http daemon on default port 80 so visiting the URL/IP in a browser brings up the website.
Run the Minecraft server on default port 25565 so putting the URL/IP in the game takes you to the server.
There are some routing tricks you can do to send port traffic to different IPs but you'd have to do some pretty specific stuff and have an external routing solution that gets the requests prior to the server(s).
That doesn't help if they want web/mc running on the same url/ip, as the OP states... but it is the way most people do it.
w: minecraft.cm | e: [email protected] | t: @minecraft_cm | reviews