473,418 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

how to access wamp server from another computer in a lan?

127 100+
i created a page that stores all the information about the resume in to the database.
i used php and mysql database. its runs on wamp server...
it works fine in that system.

now i want to access that page from another computer and store the values into the database.computers are connected in the LAN.

another computer doesnt have wampserver. is it possible to access those pages using the servers ip address? if so how?
plz help..
Aug 6 '10 #1
20 107379
johny10151981
1,059 1GB
is WAMP your server or is Apache your server?
WAMP="Windows Apache MySQL PHP".

Apache is your web-server not WAMP

As a matter of fact to access a web page you do not need any server to be installed in your system. But the server(who will server the client request) need server to be installed.

Yes you can access your server from other machine. In that case two issue is possible.
1. If you just need to access from local network
2. If you need to access from internet i.e. from anywhere on earth.

for 2 you would have to have real(public) IP address.

for 1: you can access only from local network. Local ip address is enough.

in both case you need to make a small change in httpd.conf file.
Expand|Select|Wrap|Line Numbers
  1. #your root directory address in full 
  2. <Directory "C:/Program Files/*/www">
  3.  Order allow, deny
  4.  Allow from all
  5. </Directory>
  6.  
After changing, you need to restart your apache server. then you can access from out side your own machine
Aug 6 '10 #2
impin
127 100+
thanks a lot
Aug 6 '10 #3
impin
127 100+
is it httpd.ini file? or httpd.conf file?
in wamp i find only httpd.conf file and php.ini file. where i to make these changes?
Aug 12 '10 #4
Dormilich
8,658 Expert Mod 8TB
it’s httpd.conf. php.ini is not related to the Apache server.
Aug 12 '10 #5
johny10151981
1,059 1GB
yes it is httpd.conf. i wrote http.ini by mistake. I apologize for that.
Aug 12 '10 #6
Dormilich
8,658 Expert Mod 8TB
no worry, that can happen to everyone.
Aug 12 '10 #7
impin
127 100+
its ok. thanks.
i am trying to access the pages which are in wamp installed system. those files are in C:\wamp\www\Salary this folder. now i want access "home.php" from that folder from another system in the lan.

i tried typing ip address in the url ...

http://192.168.1.2/home.php
but it doesnt work...
i got this error
The requested URL /home.php was not found on this server.
plz help how to access those pages from another system...
i also changed the httpd.conf file like you mentioned...
Aug 13 '10 #8
johny10151981
1,059 1GB
I dont know your httpd.conf file but i can guess that you havent create any Salary directory for apache.

you can access home.php by
http://192.168.1.2/home.php
if home.php in www folder

to access your address would have to be
http://192.168.1.2/Salary/home.php

A small suggestion: do not use uppercase letter for directory or file name
Aug 13 '10 #9
impin
127 100+
ya. thank you very much.
Aug 13 '10 #10
impin
127 100+
may i use like this to access the page from outside lan using public ip address.
http://xxx.xxx.xxx.xxx/Salary/home.php
Aug 13 '10 #11
Tasim
2
Hi
If your have installed WAMP or XAMPP then you need not to do any change in conf file.
Just put the actual ip of your computer and followed by your project name.

for eg: http://192.168.1.2/myproject/

And

You cannot use this server until or unless you havent purchase an static IP and keep your firewall link with the internet IP and also with local server ip.

Thankx
Aug 15 '10 #12
Hey,

Just do this
> From the WampServer Notify Icon Click > Put Online
> Disable your firewall

----------------------------
That's it!

your users can access it in LAN.
May 4 '12 #13
@ophthysoft
Thanks!!! This is so simple...
Jun 8 '12 #14
Thanks! it was cool!
Aug 24 '13 #15
Is there anyway to achieve this without disabling firewall.
Aug 25 '13 #16
Rabbit
12,516 Expert Mod 8TB
You don't need to completely disable a firewall. You can just open/forward a single port.
Aug 25 '13 #17
Open port (8081) of the server such that everyone can access your server. This depends on which OS you are using. Like if you are using Windows Vista, then follow the below steps.

Open Control Panel >> System and Security >> Windows Firewall then click on “Advance Setting” and then select “Inbound Rules” from the left panel and then click on “Add Rule…”. Select “PORT” as an option from the list and then in the next screen select “TCP” protocol and enter port number “8081” under “Specific local port” then click on the ”Next” button and select “Allow the Connection” and then give the general name and description to this port and click Done.

Now you are done with PORT opening as well.

Next is “Restart All Services” of WAMP and access your machine in LAN or WAN.

Thanks
Jeff Jones
Lead -
Dec 10 '13 #18
How could I access Magento from remote machine using XAMPP
Dec 16 '15 #19
Dormilich
8,658 Expert Mod 8TB
not at all.
Dec 16 '15 #20
can anyone write the code how to do this... or please mail it at riyap7922@gmail.com
Jan 5 '17 #21

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: dbuchanan | last post by:
I have a Windows Forms application that accesses SQL Server 2k from a small local network. The application has been used for weeks on other systmes but a new install on a new machine retruns...
2
by: Gandalf | last post by:
I can't surf my wamp server , Although both of the services seems to be working. When I trying to surf my server the browser loading the page for eternity. thanking you in advance
2
by: Andrius B. | last post by:
Hi. I am writing an app, whitch has to access a database, located on another computer (Intranet). Let's say, the computer where the app is to be installed, is "Computer1". The computer with the...
1
by: fatalparadox | last post by:
I had WAMP Server installed for a few months, everything was fine. Now all of a sudden it stopped working. It still executes the PHP but it doesn't allow me to write to a .txt file anymore. When...
2
by: robin1983 | last post by:
Hi All, I am facing a problem with WAMP. I installed the wamp5_1.7.1a. After installation, when I try to run the through explorer by writing "http://localhost" but its showing pages cannot be...
2
by: yashiro | last post by:
Hello everyone, I have a webserver with php. I would like to replace some files in an another computer, each time a php'page is running on my webserver. How can i realize this?How can i get an...
3
by: robin1983 | last post by:
Dear All, I am facing a problem with WAMP server. i dowonload the WAMP SERVER2.0c and installed in my system. But the problem is that none of the server is running. When i try to access the...
1
by: impin | last post by:
i want to access wamp server outside my LAN... is it possible to access from outside using the public ip address.?? Plz.. help
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.