Click here to Skip to main content
12,457,259 members (58,634 online)
Rate this:
 
Please Sign up or sign in to vote.
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 10-Aug-13 3:07am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
Kartik Lalan 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?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
v2
Comments
Kartik Lalan 11-Aug-13 3:11am
   
Yes You got it correct , so how can I do port forwarding please explain it in detail?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Which router ( company, model no. ) are you using??
You'll generally find help regarding to it on the company's website.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

I am having linkSys Wifi router . Ok I will check for it from company's website.
Again thanks a lot
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 11 Aug 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100