Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Web Server Problem

I have a web page that works on whatever computer is connected to my network. But if another computer tries to go to the site it doesn't work. I have enables all the sharing that there needs to be. I enabled file, windows, and site sharing, all without a firewall and it still doesn't work. Do I have to re-install whatever server came installed on my computer?

Tiger, Mac OS X (10.4.11)

Posted on Nov 11, 2008 3:05 PM

Reply
81 replies

Nov 11, 2008 7:11 PM in response to maverickws

Edit: Nevermind. That will take you nowhere. Your missing the html part there and your website's looping.

Your website is visible to your LAN machines cause they can find your machine on their network, over the Internet a private network can't be seen.

It's 3 AM here and I gtg, but I'll stop by tomorrow to try and help you to figure that out, unless someone else don't mind taking it over from here.

brgds
-rs

Message was edited by: maverickws

Nov 12, 2008 8:34 AM in response to kmccmk9

Hi mate, I would PM you if from my 18 post experience I had figured how to send one... anyway

Let's solve this on a babystep basis:

Is kylesflashgames.tk pointing directly to your machine? This is, when I type this address at my browser I go directly to your server or I'm bouncing somewhere that's supposed to take me to your website?

before using the pointer above, your website must work if I type http://<your public IP address>/~kyle/kylesflashgames/

kylesflashgames.tk points to 195.20.32.103, which belongs to verza.com, have you configured this domain of yours to bounce somewhere instead of pointing to your server?

The configuration you need to get this up and running is quite simple:
You have a website hosted on your local machine and want to have it open so anyone on the web may see your website.

the kyles..tk is a domain. A domain is only a fancy name you give to your website real address, which will always be an IP Address, which is your real address, or your machine's in this case.

There are two kinds of IP Addresses, the Public IP's and the Private IP's. A private IP Address is the IP Address your machine gets when behind a router, or in anyway inside a local network.

Let's use as an example the 192.168.1.0 /24 network (from 192.168.1.0 to 192.168.1.255, being .0 and .255 host and broadcast, so can't be used).

Assuming your router would be, for instance, 192.168.1.254, this will be your router's internal or private IP Address. For the world, it will have a public IP assigned by you ISP, let's say for example 120.1.1.1.

Now, imagine your machine's IP Address is 192.168.1.50. This IP will only be visible to all the machines inside your local network, which will be connected to your router. Everytime you access a webpage, for instance, google.com, your connection will be known to the outside with the 120.1.1.1 IP. Your router has a feature called NAT (network address translation) and will assure that when the google.com server replies to your request the data will be delivered to your machine (192.168.1.50).

I suggest you to browse on the Internet (or even google 😀 ) how it works.

If you happen not to be behind a router or alike, but instead directly connected to a modem, you may have a public IP Address assigned to your machine's network interface, which I believe it's not the case.

So, let's say your IP is 192.168.1.50 and your connection IP is 120.1.1.1.
First you'll have to configure your router to forward all http requests to your machine, since it's where the webserver is.
You (or the router's manufacturer) may call it whatever they want, World Wide Web (HTTP), http, but the main point is it uses the port 80 and tcp protocol.

So you'll have something like:
Outside port: 80
Inside port: 80
IP Address: 192.168.1.50
Name: whatever

The way of configuring this depends on the router's manufacturer and model.

After sorting this, you'll have to know what's your public IP Address:
http://whatismyip.com/
the xxx.xxx.xxx.xxx address that appears on the top of the page will be what you need.

Next, on system pref. / sharing / websharing you'll see two different addresses. If you're behind a router it'll show you your local IP so ignore that.
Back to our example, the 120.1.1.1 and assuming this would be it, http://120.1.1.1/ would access your computer's website, and http://120.1.1.1/~kyle/ would access your user's website.

Open textedit and paste the following:

<html>
<head>
<title>this is only a text</title>
</head>
<body>
I see this
</body>
</html>

Then save as index.html under your user's site folder, or your computer's site folder (make sure the extension is .html instead of .txt).

go to your browser and type http://<youripaddress>/ or http://<youripaddress>/~kyle/ depending on where you put the file.

you should open a blank page with the text "I see this".

Let me know when you figure this out, and we'll take it from there.

-rs

Nov 12, 2008 12:02 PM in response to maverickws

ok first thing first. Is I don't own dot.tk its a service that creates a url that redirects the use to a page. I tried configuring it to my site on my computer but that didn't work. So I have it set to link you to that page on my yahoo geocities file that redirects you to my computer. I have used this method before on another site, except I used hometown aol instead of geocities and that worked. So I tried doing the same, except for putting it on hotlinkfiles.com and ya thats where I am. I would follow the rest of your post, but I don't want to do that, cause that looks like if you wrote it like if it was being directly forwarded to my site, but ya its not...so my bad...

Nov 12, 2008 12:47 PM in response to kmccmk9

What I posted was an how to host a website on your Mac, and how to reach it behind a router, since that's the subject about this thread is. I'm sure whatever the .tk is, beside redirecting links, it probably also permits to A records, if there is no problem with your "web server" and what you're looking for is "something else" there's no point in maintining this thread.

Web Server Problem

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.