Discussion Locked

Troubles with a small home router [r/o]

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a broadband cable account
and I would like to set up a very
small website. (limited amount of
users so bandwith doesn't go
kapoof!) I am using Mac OS X with
the Apache web server built in. So
everything works good except for the
fact that the computer goes through
a gateway router. And I can't remove
it either. The page works fine on the
LAN, but that is just the standard
192.168.0.x router assigned
numbering configuration. So, how
would I access the site from outside
the LAN? Let me know if somthing
here is unclear. Thanks

8 replies

by fdurham

Corey,

First is it a Linksys Router? If so then all you need to do is...
1. Get into your router Web admin page.
2. Click on the advanced tab
3. Click on the forwarding tab
4. If you are only using port 80 (HTTP) then forward that port number only to the private IP address that your Mac computer is assigned. If you plan to use FTP port 21 or SSL port 443, then add those as well.

Apply the configuration and you should be able to access your web site from the outside. Hope that helps...

PS: invest in a Freeware Firewall system of some sort... Sygate is a good one...

Frank Durham
CCNA, MCSE, MCP

by admin

You may want to check, it may be illegal to run any server on your account, and they may scan in your area......

by corey1

It is not a Linksys router but a Netgear
model. I belive it will work the same way:
I went to the router's page; then to
advanced. There was nothing called
forwarding but the closest I can come to
the same function is ports. Would this do
the same thing? There is also somthing
called static route but it is all IP's
(destination, subnet mask, and gateway
ip's) and no ports on the page. The only
problem I am having under the ports
menu is finding my IP address. A friend
once told me that if I type "netstat -n" in
dos I will get my IP and the others
connected to my machine. However, I
have a mac. And the addy I get is the one
assigned to me by the router. ie:
192.168.0.2 So my question is how can Iget my real IP?

Oh and on the case of the leaglness of
my router. I have had it 6 months so far
with no trouble. Although, I only have one
computer connected to it, I will add other
computers if I decide to expand. I will
also checkup with my ISP about having a
router.

Thanks again

by corey1

For some reason it is not working. The IP
I enter by the port number, is this my
actual IP that is seen by others, or is it the
LAN network router assigned number?
(192.168.0.2) Do I have to change my
network settings on my computer? DoI
still use DHCP configuring? Many
thanks.

by admin

is a private range ip. It cannot be seen on the internet. yes, you'll have to change the network settings. Did you get more than than the one ip assigned to your router from pr3sumably your isp? Do you have dmz function on your router? You can use DHCP, but there wouldn't be much point. At any rate you would have to change the ip range and it's probably easier to use statics.

This will seriously compromise the security of the box you run the webserver on and you will have to take measures tokeep from being easy target.

Hope this helps.

by paule54600

You need obviously to find your external adddress. This may be a static address or it can change but either way it is assigned by your isp. Try to locate it on the configuration page for the router, or unplug the router and run the modem directly into the computer. Then type in the Mac command to display your ip-PaulE54600@msn.com

by corey1

I don't want to post it here so I will just
use: 123.45.67.89. I added my IP
(123.45.67.89) to port 80 in the ports
menu. However, it still doesn't work. I
have options for static route and Lan
options which include options for
enabling DHCP Server, and LAN TCP/IP
options. If you want screen shots of the
pages, let me know and I'll put them up.
Thanks.

by d3 systems

Sounds like you need to configure a pin hole in your router so that HTTP requests from the internet can come through to your server. In the pinhole configuration just specify the ip address of your server. Use the default HTTP port. You will also need to have your ISP add the ip address of your router to thier DNS so that requests to www.whatever.whatever will be mapped to your router, which will inturn let that request through to your server. Let me know if this helps.

This discussion is closed to new replies.