Go Back   Computer Forums > General Computing > Server Administration
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 11-21-2010, 09:17 PM   #1
Beta Member
 
Join Date: Nov 2010
Posts: 3
Default WAMP server won't work outside of LAN!!! Help!

Hi, I'm pretty new at working with webservers and have set up WAMP on my Windows XP machine. It works perfectly within the LAN (I can access my localhost page from any computer on the network), but I can't get it to work from outside. I'm using freedns.afraid.org and their Dynamic IP update client to forward to my dynamic IP. I figured my ISP is blocking my Port 80, so I switched it to 8080 and set my router to forward to my machine. Now in the LAN i go to "192.168.2.105:8080" (192.168.2.105 is my internal IP) and that loads fine, but still doesn't work from outside. When I ping my freedns.afraid.org domain it resolves to my IP so thats not the problem. The only things I changed in my Apache httpd.conf file was changing the listening port from 80 to 8080 and adding these lines for virtual host:

Code:
NameVirtualHost 192.168.2.105
<VirtualHost 192.168.2.105:8080>
</VirtualHost>
(192.168.2.105 is my internal IP) I haven't really done anything with mySQL or PHP yet, but i know they're configured by WAMP; I just haven't made any databases yet.

Please help me!!! I've tried as much as I know and I'm pretty new to this!
__________________

aabmass is offline   Reply With Quote
Old 11-22-2010, 02:46 PM   #2
Baseband Member
 
Jacob..'s Avatar
 
Join Date: Aug 2010
Posts: 75
Default Re: WAMP server won't work outside of LAN!!! Help!

Hello, I am not familiar with WAMP but are you sure you have port 8080 forwarded correctly?
__________________

Jacob.. is offline   Reply With Quote
Old 11-23-2010, 03:31 PM   #3
Beta Member
 
Join Date: Nov 2010
Posts: 3
Default Re: WAMP server won't work outside of LAN!!! Help!

Quote:
Originally Posted by Jacob.. View Post
Hello, I am not familiar with WAMP but are you sure you have port 8080 forwarded correctly?
WAMP is an acronym for Windows, Apache, MySQL, PHP, but it is distributed as a software package. And I'm pretty sure I have forwarded Port 8080 correctly. I have a linksys WRT54GS if that's of any help.
aabmass is offline   Reply With Quote
Old 11-25-2010, 03:48 AM   #4
In Runtime
 
Ocido's Avatar
 
Join Date: Nov 2010
Posts: 121
Default Re: WAMP server won't work outside of LAN!!! Help!

If you have dynamic IP I believe it's not possible
__________________
Common sense is not so common.
Ocido is offline   Reply With Quote
Old 11-27-2010, 06:17 AM   #5
Baseband Member
 
Join Date: Oct 2010
Posts: 84
Default Re: WAMP server won't work outside of LAN!!! Help!

I suppose you need extended IP for that
Vladimir is offline   Reply With Quote
Old 12-03-2010, 07:35 AM   #6
Beta Member
 
Join Date: Dec 2010
Posts: 4
Default Re: WAMP server won't work outside of LAN!!! Help!

Some Routers will never let you access from the "outside" be sure to test this on a different connection than your home connection. Apart from making sure that you have forwarded the ports to the Server internal LAN IP. So don't use DHCP, unless you have an option in your router to setup static DHCP. Other than that you must check that no firewall is blocking the ports on the server. Windows XP is not a server OS, if you go with Windows I suggest Server 2008, web or standard and use IIS. If you wish to use Apache, Nginx, Lighthttpd or others go with Linux if you can.
garyilk is offline   Reply With Quote
Old 12-09-2010, 05:49 PM   #7
Fully Optimized
 
Indigo's Avatar
 
Join Date: Jul 2010
Location: USA
Posts: 1,866
Default Re: WAMP server won't work outside of LAN!!! Help!

WAMP is similar to XAMPP, but I have better luck with XAMPP. As for needing Server 2008 for something like this, that's overpowered and too much for this purpose. Windows XP actually does fine, I have a virtualized XP system running XAMPP right now, and it does a fine job.

The key is to definitely be sure that you are forwarding the port on the correct system, especially if it uses DHCP (I set mine to static on the LAN) and then also make sure that you aren't running into conflicts. If you're using Port 8080 for the general Port 80 rule, you'll have to change the Port 8080 rule to something else, say, Port 8081. If nothing else in your setup is assigned to 8080, you can ignore what I just said.

Also, when you use Port 8080, you may need to type http://myserversnamehere:8080 to get it to display the page correctly.
Indigo is offline   Reply With Quote
Old 01-04-2011, 05:15 AM   #8
In Runtime
 
Join Date: Jan 2011
Posts: 277
Default Re: WAMP server won't work outside of LAN!!! Help!

Is there any error message in apache error log file. Have you verify the access log file.

Test the port is accessble outside using below command

#telnet ipaddress portnumber

ex

telenet 192.168.2.105 80
sahabcse is offline   Reply With Quote
Old 01-04-2011, 05:49 AM   #9
Solid State Member
 
unleasher's Avatar
 
Join Date: Jul 2004
Posts: 15
Send a message via Yahoo to unleasher
Default Re: WAMP server won't work outside of LAN!!! Help!

Before I comment on this topic, I just want to ask if you are using a DLINK router. Your response will help me to answer your question better.
unleasher is offline   Reply With Quote
Old 02-13-2011, 07:21 PM   #10
Beta Member
 
Join Date: Nov 2010
Posts: 3
Default Re: WAMP server won't work outside of LAN!!! Help!

No, the router is a Linksys WRT54GS. Thank you all!
__________________

aabmass is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 01:01 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0