Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
I am using WAMP server to host a local web-directory . I can work well with this when I am in accessing it from any PC within the local area (LAN) . Similar thing I did was I accessed web-directories from a remote PC through internet but at that time my server was directly connected through internet so it works fine.


Now problem comes when I have to access a host PC running WAMP (say PC-1) from a remote PC(say PC-10) through internet where the host PC (PC-1) is connected in LAN .
That means how to address it since we need to specify only one IP to access PC-1 . Whereas when we connect it through internet in LAN it needs identification with 2-IP (i.e. 1 IP for LAN and 2nd for internet ).


What other things are required apart from IP address and from where do we get its details.
Please let me know if I am not still clear regarding the description.
Posted

In the httpd.conf file
make the changes
#
# Controls who can get stuff from this server.
#
Order allow,deny
# Deny from all <--- original value
Allow from all # new value, which will enable your server to process non-local requests as well

You will find this file in C: > wamp > apache > conf
Also you'll need to restart the server after making these changes
 
Share this answer
 
Comments
[no name] 11-Aug-13 2:14am    
Thank you, this will surely help me. One more doubt is that the as I said that while my server PC is in LAN as well as is connected to internet. So in that case which IP should I specify i.e. the IP obtained from LAN or from internet?
Are you using a router to connect to the internet...??
If yes, the Internet-IP address is assigned to the router. Whenever you'll send HTTP request to that Internet-IP address, it will go to router and not to PC-1 (on which the WAMP server is running)
You'll need to do port forwarding for the purpose. It'll force the router to redirect all the HTTP requests that it receives to your PC-1.
After you do this, you can provide the Internet-IP address to access PC-1
 
Share this answer
 
v2
Comments
[no name] 11-Aug-13 3:11am    
Yes You got it correct , so how can I do port forwarding please explain it in detail?
Which router ( company, model no. ) are you using??
You'll generally find help regarding to it on the company's website.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900