cancel
Showing results for 
Search instead for 
Did you mean: 

Hosting a website from home

N/A

Hosting a website from home

Hey all,
I currently have a LAN at home with about four computers usually connected via a D-Link DSL router. On one of these computers (running Windows XP) I have installed Apache, mySQL, and PHP. Now, the Plus.net account I signed up for stated that I would receive a 'Static IP' address and that it would be possible to host a web server / game server.

Unfortunately, I believe that NAT is used by the router and that this may make it impossible to host the webserver on one of the machines within the network . I believe that NAT can be turned off, but I do not know what the consequences of that would be and if that is the solution to the problem.

The 'server' works over the network, using an internal IP address allocated by the router. I attempted to forward port 80, hoping that forwarding it to the 'web server' would resolve the problem - making it possible to view the website outside of the LAN. However, no luck Sad.

Thus, I was wondering if anybody knew whether or not port 80 was blocked by Plus.net? Or where I may have gone wrong? - I wish to make it possible to view a website hosted on the web server, when not connected to the LAN (i.e. over the internet).

Any help would be much appreciated, as I am stabbing in the dark somewhat Wink.

Thanks,
Mike.
8 REPLIES
N/A

Hosting a website from home

PlusNet does not block port 80. When you are running NAT on the router, you just need to tell the router to forward port tcp/80 to the LAN address of the machine running the webserver, and to open port tcp/80 in the router firewall (if it is enabled) for incoming connections.
There isn't any need to disable NAT.
Community Veteran
Posts: 14,469
Registered: 30-07-2007

Hosting a website from home

To access your static IP address you must use http://username.plus.com (not www.username.plus.com which points to your PlusNet webspace). So, what were you using to access your local server?

Port forwarding in the router is the method to allow connections on certain ports (80 is correct for http/web) to be passed through to a local system - just make sure your local web servers IP address is never changed from the one specified in the port forwarding - you may need to read up a bit more on the routers port forwarding capabilities and keep trying different options - you may also ned to setup UDP and TCP port forwards..

Also check for updated router firmware - sometimes issues are solved by newer versions so this may help.
csogilvie
Grafter
Posts: 5,852
Registered: 04-04-2007

Hosting a website from home

Also, with most routers, http://username.plus.com/ will not work from within the network you are on.
N/A

Hosting a website from home

Ok... I'm going to attempt to update the firmware then. I've not been able to access the website from http://myusernamehere.plus.com/ from within the network and haven't got any method currently available to try outside of the network.

I have also forwarded both with UDP and TCP port 80 to the hosting machine (running Windows XP). Hopefully, this'll work once the firmware is updated but we'll have to wait and see Smiley.

-- p.s. I was previously attempting to view the website by using the external IP address of my machine (I got that from a website). --

As far as I know, my IP address within the network will not change without my intervention so that should prove helpful.

Thanks for all the help! I'll let you know how it turns out.
N/A

Hosting a website from home

I have attempted to install the lastest version of firmware for the router, but it simply does not appear to work. The firmware was an installer that is initiated from a PC that is connected to the router and it appeared to have no effect upon the router itself. I do not believe it was able to connect.

Anyway, I don't think that the firmware is the problem. I am going to get a friend to try to connect to the URL that *may* direct him to the web server. If that fails, I'll take a look at the remaining options.
csogilvie
Grafter
Posts: 5,852
Registered: 04-04-2007

Hosting a website from home

I can see http://modulus.plus.com from here no bother, so it seems to be wroking Smiley
N/A

Hosting a website from home

It works fine here I can get your page ok and can get to mysqladmin and hack into all you databases.

You shouldnt have directory listings and mysql admin open to the world
N/A

Hosting a website from home

Ok lol. Thanks for testing it out. I didn't intentionally leave it as a plainly visible directory but I didn't have the opportunity to change it (had to sort a more serious problem out in the house).

Well, thanks a bunch for helping me get it up and running Cheesy! I do have a few more questions though: what security risks are there (as stated in mwright's post) and what steps can be taken to minimise the risks (e.g. using .htaccess) ?

Thanks again!