PDA

View Full Version : Setting up a webserver & ftp server behind a router


black_magiic
July 9th, 2004, 09:52 AM
Im trying to set up the port forwarding on my router so that I can run a webserver and an ftp server. How do I go about doing this.

cpugeniusmv
July 9th, 2004, 10:51 AM
which router do you have?

talkinghand
July 9th, 2004, 10:57 AM
well, you would foward port 21 and 80. that is if you are using the standard ports. but, to know how to do this, we need you router model./

black_magiic
July 10th, 2004, 08:12 PM
I have a linksys BEFSR41 V3 Etherfast® Cable/DSL Router I have been tinkering around with it but to no avail

hawkburn
July 10th, 2004, 08:54 PM
You have the exact router I have.

If you are plugged in via port 1, you are 192.168.1.100

Your router address is 192.168.1.1 the default password is "admin" and leave the username field blank.

Once into the interface, go to Advanced (orange at the top) and then click Forwarding (gray at the top after you click Advanced)

Type the name of the app, the ports (80 for webserver, 21 for FTP) click TCP, enter the appropriate IP address (100 if you are in port 1) and check enable. Then hit apply and enjoy.

Edit: default password= admin

black_magiic
July 10th, 2004, 09:20 PM
if im not in port 1 how does the number scheme progress. I think I am in 3.

cpugeniusmv
July 10th, 2004, 09:26 PM
You have the exact router I have.

If you are plugged in via port 1, you are 192.168.1.100

Your router address is 192.168.1.1 the default password is "admin" and leave the username field blank.

Once into the interface, go to Advanced (orange at the top) and then click Forwarding (gray at the top after you click Advanced)

Type the name of the app, the ports (80 for webserver, 21 for FTP) click TCP, enter the appropriate IP address (100 if you are in port 1) and check enable. Then hit apply and enjoy.

Edit: default password= admin
that's not necessarily true...the linksys assigns IP addresses on a first come, first serve basis. if you're the first computer to ask for an IP you get 192.168.1.100 (by default). it can change. so you'll need to assign a static IP address to your computer. (optimally something that the router will not assign so that there won't be any conflicts in the future. don't use 192.168.1.100 - 192.168.1.149) to do that, look in the TCP/IP properties in the properties of your LAN connection in the Network Connections Control Panel item.

after that, check this out: http://www.portforward.com/linksys/befsr41.htm

Lehk
July 11th, 2004, 12:34 AM
do not rely on your port number, go to the run command
Start> Run
"cmd"
ipconfig

this will tell you your IP address, and don't skip cmd or the console will auto close before you have a chance to read it

Malakai1911
July 11th, 2004, 11:16 AM
Alrighty, you need to set yourself up with a static IP.

I'd reccomend 192.168.1.10, because its below where the DHCP addresses start.

Go to Control Panel, then "Network and Dial Up Connections" (I'm using 2000, but XP is similar), right click on "Local Area Connection" and click properties.

Highlight "Internet Protocol (TCP/IP)" and click "Properties..." underneath it.

Change "Obtain an IP address automatically" to "Use the following IP address"

Fill in the fields as follows:

IP Address - 192.168.1.10
Subnet Mask - 255.255.255.0
Default Gateway - 192.168.1.1

When you chosse "Use the following IP address", "Use the following DNS server addresses" gets automatically selected.

Fill in the fields as follows:

Preferred DNS Server: 192.168.1.1
Alternate DNS Server: <leave blank>

Hit okay, and okay to any WINS error that may occur. And okay again, until you are back to control panel.

Now reboot. Congratulations, you now have a Static IP at "192.168.1.10" for that computer. You can repeat the steps above for other computers by just specifying a different "IP address" at "192.168.1.(11 to 99)"

Now login to your router's admin interface and forward port 80 TCP&UDP to "192.168.1.10".

That's it. You can also forward eMule ports 4662-4672 if you want, while yer at it.

black_magiic
July 11th, 2004, 03:18 PM
Thanks for all your help guys (and gals if its applicable) I think I have it all figured out.

black_magiic
July 11th, 2004, 03:53 PM
Can anyone reccomend a good ftp server software

cpugeniusmv
July 11th, 2004, 10:03 PM
Can anyone reccomend a good ftp server software
for windows i really like Gene6 FTP Server...but it's not free.

Squid_Ling
July 11th, 2004, 10:31 PM
SmartFTP is pretty simple....not sure if it allows hosting though.

shawners
July 11th, 2004, 10:39 PM
I like it here. i dont have to pay 45 dollars to a service man on the phone to direct me on how to link up my system or any pc problems.. I do have paypal.. and need to make a large donation to compugenius as well as begoodbebad. Maybe enough to put their male order brides on a plane here =) Just Kiddin. Enough to buy a dinner and a free downloadable movie.

cpugeniusmv
July 11th, 2004, 11:08 PM
SmartFTP is pretty simple....not sure if it allows hosting though.
you are correct, that's only a client ;)

Malakai1911
July 11th, 2004, 11:19 PM
Serv-U FTP is the best "paid" standalone FTP server. There is a trial, and there are ways of obtaining serial #'s via less than legal means, but this is zeropaid, so you should know how to do that already.
http://www.serv-u.com/

Serv-U is my highly regarded reccomendation, it's easy to use and reasonably secure.


PureFTPd is good if you were on linux. There's a windows port but it requires cygwin so its kludgy.
http://www.pureftpd.org/

cpugeniusmv
July 11th, 2004, 11:34 PM
Serv-U FTP is the best ...
hmmm, i'll leave you alone :)

black_magiic
July 14th, 2004, 11:12 AM
Ok, new problem. I have correctly set up the portwarding as instructed (at least I think so). But I can only access the website from behind the router. What could be the problem.

black_magiic
July 14th, 2004, 11:13 AM
I got my friend to try the site and it just gave him an error page.

cpugeniusmv
July 14th, 2004, 12:12 PM
EDIT: which webserver software are you using?

FrozenShadow23
July 14th, 2004, 12:14 PM
I don't suggest you use cheap free servers. They usually have security problems. I'm not saying that they WILL get broken into, but they're much easier to comprimise (so I've heard) than say, Serv-U or RaidenFTP.

black_magiic
July 14th, 2004, 03:24 PM
right now I havent even bothered with the ftp server Im still trying to set up the webserver, for the webserver I am using abyss webserver.

Malakai1911
July 15th, 2004, 09:49 AM
Who's your ISP? Perhaps they block inbound port 80 requests.

edit: heres a few good webservers if you ever get unhappy with what you have.
Absolute simplicity? AnalogX SimpleServer.
http://www.analogx.com/contents/download/network/sswww.htm

Most widely used? Apache, now running 67.37% of all websites on the internet.
http://httpd.apache.org/

Otherwise if you wanted something you could just slap together, IIS is "alright", as long as you use the IIS lockdown tool, patch, and prey.

black_magiic
July 15th, 2004, 11:37 AM
My ip is telus, as far as I know they dont block port 80 I think I have found my problem it was stupidity on my part (naturally). Its just a matter of getting one of my friends to test.

dieselhead
December 10th, 2006, 07:47 AM
hey guys i have cesarftp installed on my comp. and have a dlink router. have also forwarded the ports. but the files i share thru the ftp server can only be accessed by my other computers connected to the local network but not from the internet..
pls help!
p.s the comp has an static ip add of 192.168.0.151.

Tic3
December 10th, 2006, 08:04 PM
hey guys i have cesarftp installed on my comp. and have a dlink router. have also forwarded the ports. but the files i share thru the ftp server can only be accessed by my other computers connected to the local network but not from the internet..
pls help!
p.s the comp has an static ip add of 192.168.0.151.

That's your "behind the router" address, which is only accessible to other computers on your LAN. If you have your port forwarding correctly set up (forward port 21 to that address above), then people outside your home network would need to connect to your REAL IP address. Go to http://www.whatismyip.com to find what your real address is.

NOTE: Unless you pay you ISP extra money to assign you a static IP address, your router will request a new IP addrss every so often, so whoever you give your FTP address to will need to be told your new address whenever it changes.

I think...it's been quite a few years since I had an FTP set up.

Tic3

Jamesn1985
February 5th, 2007, 05:51 PM
Ok, I am also trying to setup an FTP server, but I am having the same problem. I can access the server from any computer on my network, but when I try to access it from an outside computer, like a neighbor five miles away, I have no luck.

My static IP Address is 192.168.0.136 and my real ip address is 63.238.27.100, according to my NetGear MR814 Wireless Router.

Can someone please help me set up my Serv-U client to allow both people on my network and people outside my network to access my specified directories on my computer.

Thank You.