Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

port forward using d link 4500 with apache 1

Status
Not open for further replies.

xhacker24x

Technical User
Mar 25, 2008
80
US
CAN ANYONE HELP ME WITH APACHE?
IM TRYING TO MAKE IT AVAILABLE TO the INTERNET TO BE ABLE TO SHARE FILES WITH FRIENDS BUT, I DONT KNOW HOW TO DO THIS USING THE D-LINK 4500 EXTREME GAMING ROUTER I DONT KNOW HOW TO PORT FORWARD ON THIS ROUTER.
PLEASE HELP.
THANK YOU
 
Click on the "Advanced" tab then on the left side you will see a menu. Select "Virtual Server". You can forward ports from there.
 
can you take me threw the steps to make apache available on the internet please?
like to share files with friends.
its that i have never done this and i want to set it up
thank you
 
Where are you right now? Did you get the router to forward http traffic to the server yet? Is apache installed and running? If you need help installing apache, what OS will you be running it on? It's hard to step you through this if we don't know where you are in the process.
 
ok im running windows xp home edition. i did figure out how to port forward and i downloaded and installed apache but now i need help on how to make it live on the internet to be able to share files with friends.
how would i go about doing that?
thank you.
 
There are two ways. One is to give everybody your ip address and they can type that into their browser or you can cut loose of nine bucks and buy a domain name. You buy domain names from registrars like godaddy.com for example. Most registrars will also provide dns service so you can point your new domain to your ip address. Keep in mid that it is the public address that your router is assigned to not the private ip of the server. If setup correctly, the router will forward all http (port 80) traffic to the server. On windows machines, the istall is a two step process. First you install the software. Then you need to install apache as a service so you don't have to start it in a window every time you reboot your machine. (something windows people do a lot I hear) ;-) If you've siccessfully installed apache, you should be able to type in the browser (the same one the server is on) and see a test page. If you see the test page, you are very close. All you have to do is look for a directory called htdocs. This is called the DocumentRoot and is where your pages will go. You can create sub-directories in the DocumentRoot if needed. To restrict access to these directories or change the DocumentRoot, you will edit apache's configuration file called httpd.conf. If you have trouble finding these directories or files, let us know. I don't know anything about windows installations as far as where they put things so maybe somebody else here can help. You said that you wanted to share files. If this is the case then you may want to look into an ftp server. This way your friends would log in with an ftp client rather than an http client (browser). If you want to use http to share files you can put zip files in a directory and not use an index page such as index.html. This is a very dangerous way of doing things however and is not recommended. The best alternative to ftp would be to use script that will handle uploads and downloads from your site. This will require that you have either cgi or php installed. There are packages out there that have apache, mysql and php all bundled together. They are called WAMP packages and usually have other stuff like cgi/perl included. regaurdless of how you go, I would strongly suggest looking into a WAMP package if you ever expect to run interactive pages. Pure html is fine for static pages if you want vistors too have something nice to look at but if you want any input at all, your going to want a scripting lauguage.
 
ok here is where i am right now..
i installed apache. i searched to see how to forward the ports for apache and according to the page i found for the router i have it says the following.
(We will list a series of lines here that will show you exactly how to forward the ports you need to forward. Apache requires you to forward the TCP(80,443) ports. Go ahead and enter the settings shown above into the Add Game Rule menu and then click Save.)
but what about in the ip address box what do i put on there?
and do i need to change anything in the htdocs folder?
someone told me to change the listening port in the httpd.conf folder but, what do i change it to?
oh and by the way when i type in localhost in the browser it says IT WORKS
but i dont know what to do after that.
if i need to type in the ip address in my router settings for apache...which ip address do i put in?
the one that comes up when i go to start,run and type cmd or the ip address i get when i got to whatismyip.com
because in the command window i get an ip address and when i go to the whatismyip.com it gives me another ip address so whichi one do i use?
thank you


 
Before you do anything, you need set aside a range of ip addresses that are not in the dhcp pool. By default, most routers act as a dhcp server. That means that it will assign local ip addresses to connecting computers. For example, you can have all addresses above 192.168.1.100 available for the dhcp pool. You will need to study the manual that came with your router to see how to do that. Next you need to assign a static (one that never changes) ip to the server. To do this, open the control panel. Click on Network and Internet Conections. Then click Network Conections on the lower section of the page. Now right click on your connection's icon then click properties. Highlight "Internet Protocol [tcp/ip]" and click properties. Select the option to set the ip manually and set the dns servers manually. The info will look some thing like this:

ip address: 192.168.1.10 ( This can be anything not in the range of dhcp addresses)
subnet mask: 255.255.255.0
gateway: 192.168.1.1 (the ip of the router's lan address)

The router and server must be on the same subnet so if the router is at 192.168.0.1 then the server ip would be something like 192.168.0.10.

To answer your last question, the address that you see when you go to whatsmyip.com is your public ip address. That is the address the router uses on the wan side. The one you see on the command line is the address that is assigned to that computer. It should be a local network address in the form of 192.168.x.xxx. The outside world will access the server using the public ip and the router will know what to do when a request comes in. To access it from another computer on the local net, you would use the ip address you assigned to it. This must be a static ip for port forwarding to work correctly. If you let the server get an ip address automatically, the router won't know where to forward the requests.

 
is there any way you can do this for me using windows xp remote assistance? becaue i really dont understand any of this at all.
i dont want to do anything wrong and mess anything up.
please let me know.
thank you
 
No offense, but if you don't understand this now, you shouldn't be attempting it. Running a web server that's open to the internet is not something to take lightly. It will be a target of attack and if not properly secured, all sorts of bad things can happen.

Are the files that you want to share too big to send by e-mail? Have you thought about how you're going to secure the files that you want to share? Do you plan on allowing your friends to upload files to your server? If so, how will you do that & keep it secure?
 
yeah thats why im trying to learn.
if someone out there can do it then, i dont see why i cant learn to do it as well.
 
hey this is off the topic but, do you by any chance play the game counterstrike online?
 
me or RhythmAce?
As for me - no, but I can't answer for RA
 
im still trying to work with apache but i got stuck in one place..after i typw in localhost in the browser i get a page that says it works but, i dont know what to do after that.
im thinking of just giving me.
since i have several computers all hooked up to my wireless router..some are wireless and some are wired.
maybe someone can tell me of other things i can be able to do with my computers other then just use one of them as a server.
thank you
 
ok. let me tell you what my router says and what ive done so far.
according to what i found for my d link 4500 router to port forward it with apache it says. this..
Apache requires you to forward the TCP(80,443) ports.
so on the window that shows me how to do it what what to put in there it says the following.
Name. Apache1
Ip address. the box is blank.
TCP Ports to Open :80,443
UDP Ports to Open :80,443
Inbound Filter : Allow All
Schedule : Always
ok so in the ip address box which ip address do i put in? the one that comes up in the command box or what?
so then i go to the page called httpd and change the listening port to 80,443
i restart apache and it says failed to connect.
but if i put back the listening port to 80 and restart apache and type localhost in the web browser then i get a page that says it works.
so i dont know what im doing wrong or what it is that i need to change to make this work.
thanks for your help
 
I told you what to put in there a couple posts ago. To get more specific I would need to know the local ip of the router. For example, most routers let you access the admin using the local ip like 192.168.1.1. What is the ip of your router? I will talk you through this step by step.
 
Don't touch the apache listening port, at this point you only need 80, 443 is for https. You don't need UDP either 80 or 443.

The router is going to take port 80 packets on the Internet side, and forward to your computer, port 80. So the router needs to be configured with the LOCAL ip address. the value from run/cmd: ipconfig /all
The IP number should be 10.X.Y.Z or 192.168.Y.Z.

You can verify this by typing in your browser on the local machine
or and it should return the same web page like:
or
If you use DHCP, you will need to ensure the same computer gets the same IP each time, usually with a long lease or reservation. If you use static, this is not an issue.

Also, if you are running a firewall on the PC, you will need to allow port 80 inbound.

If you have another computer, you should try and use the http tests above. If you can ping the ip but cannot bring the web pages up (the ones or then the probable cause is a software firewall on your server. You will need to enable "apache" as an exception under the Firewall control panel (I think it will appear as apache or something like that).
 
in my router settings where it says
TCP Ports what am i suppose to put in there?
and in the
UDP Ports what am i suppose to put in there?
and in the ip address i put the ip address that i got from the command window
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top