Search within:
Articles
Quick Answers
Messages
Articles » General Programming » Internet / Network » Network

| # How to Access WAMP Server in LAN or WAN Jaiswar Vipin Kumar R., 31 May 2012 CPOL
| 4.67 (5 votes)
1 | 2 | 3 | 4 | 5
4.67/5 - 5 votes μ 4.67, σa 0.82 [?]
Rate this: | vote 1vote 2vote 3vote 4vote 5 |
Please Sign up or sign in to vote. How to access WAMP Server in LAN or WAN. ## Introduction The WAMP server is very useful and is widely used open source. It works great when you are working in a local machine. But when you want to access the same WAMP server form a different machine on LAN or WAN then it’s not possible. ## Background Consider you are working in a team in a big project and each member of the team works in different modules and the same database. Issues arise when you merge files as well as the database. The best solution is to implement SVN on your server (for checking in and checking out files and folders etc.) and ask all team members tto access that server instance. ## How to do this Here are the steps to make WAM enabled on LAN or WAN: #### Step 1 First you need to set up the WAMP service on your server and on the required services. And make sure that your WAMP server is online and it’s running on your browser using http://localhot:8081/ (I have given a fixed port number 8081 to my WAMP server). For more information please refer to the WAMP setup instruction at this URL: http://www.bulletprooftemplates.com/how-to-install-wamp-20. To run the WAMP Apache server on your specified port, do the following. Go in the \wamp\bin\apache\Apache2.2.11\conf\httpd.conf file and search for “#Listen” and then change the port from 80 to 8081 and in that case, your URL will be http://localhost:8081/. Like below: Hide Copy Code
    #Listen 12.34.56.78:80
    Listen 192.168.1.154:8081
#### Step 2 Now make the WMAP Server accessible in the LAN or WAN, you have to get \wamp\bin\apache\Apache2.2.11\conf\httpd.conf and open it and find the following code: Hide Copy Code
    <Directory "cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
       Deny from all
    </Directory>
And change the above code to: Hide Copy Code
    <Directory "cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
       Allow from all
    </Directory>
#### Step 3 Now you have to bind the server static IP to the port number (remember we gave done this in the start) so for this you have be on the same file and change “Listen 8081” to “Listen [IP Address of Server]:8081”. It will look like “Listen 192.168.1.154:8081”. Hide Copy Code
    Listen 192.168.1.154:8081
#### Step 4 Great! The next step is to 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. Happy coding… ## Points of Interest You will find here how easy it is to make WAMP running on LAN or WAN. If you need more help, please free to contact me atn jaisarvipin@gmail.com. ## License This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL) ## Share email twitter facebook linkedin reddit google+ ## About the Author Jaiswar Vipin Kumar R.
| Architect
India
Having expert hand on .NET 2.0, 3.0, 3.5, ASP.NET, C#, C++ , VB 6.0, PHP , JAVA (AWT, SWING AND JDBC) , SQL SERVER 2000, 05, 08 , ORACLE 7I, 8I, 9I , PL/SQL , MS ACCESS , MY SQL , HTML DHTML , JAVASCRIPT , XML , XAML, XSD, XSLT BIZTALK 2004 , 06 R2 , PWS , IIS DATA ENVIRONMENT , CRYSTAL REPORT 8.5 , SERVLETS , RMI , C1 COMPONENTS , TOAD , VISIO , FXCOP , CITRIX SERVER , WEB SERVICES , ADO.NET , VBA , VB SCRIPT , VSS , PARTOL , UNIX - SHELL SCRIPTING , LINUX , WEB DEPLOYMENT , COM , DECOM , MPP , WINDOS 9X , LINUX ADMIN.  which covers experience in Application Design and Development using .NET applications, Java, PHP, Database Administrator, database development and code optimization (writing stored procedures, triggers and DTS packages), defining architecture of application.  Having experience working with Business Process Modeling tools like Visio, database management TOAD, testing and review tool like FxCop.  Participated in creating Estimation, Assessment document and requirement analysis and creating proposal document preparation.  Implemented Object Oriented concepts in applications.  Knowledge in VBA for Excel and MS office suites.  Having experience creating architecture and design document.  Team Lead for .Net development projects  Database administration, development and Query optimization  Experience in SQL Server / Oracle / MY SQL / MS ACCESS Database  Lay down Coding Guidelines and code optimization techniques.  Developed application using .Net technologies such as ASP. Net, Web Services, WS Security WSE 3.0 (Kerbrose token).  Excellent understanding of the Software development life cycle (SDLC).  Expertise n-tiered Applications  Exposure to CMMI Maturity Level 5 process areas. FAR (functional area representative) for engineering processes.  Proven record of working in both small and big teams under stringent time  Constraints and ability to deliver on time with high standard of quali Group type: Organisation (No members) ## You may also be interested in...
Pro Value of Database Resilience: Comparing Costs of Downtime for IBM DB2 10.5 and Microsoft SQL Server 2014 | Visual COBOL New Release: Small point. Big deal
Pro The Importance of Monitoring Containers | Build BOT with Microsoft Bot Framework Rest API
Deep Learning on Windows: A Getting Started Guide | SAPrefs - Netscape-like Preferences Dialog
## Comments and Discussions
You must Sign In to use this message board.
Search Comments
| Profile popups Spacing Layout Per page
|  | First Prev Next
| How-to-Access-WAMP-Server-in-LAN-or-WAN Member 125845737-Jul-16 21:21 |  | Member 12584573 | 7-Jul-16 21:21
thank u sir for this post. i am trying to access my server from my mobile app. its working on virtual device but not connecting to server from real device . i tried all steps as u stated in above tip but its not working with my app . please help me what to do now....
Sign In·View Thread·Permalink |
| Accessing WAMP Server from Internet (WAN) Member 1178425422-Jun-15 9:44 |  | Member 11784254 | 22-Jun-15 9:44
Thanks a lot Jaiswar! I have been trying to do this for a week. I googled, attached a static IP to my PC, port forwarded the router, tried deciphering router's log and did these things N times.. You can understand the frustration I went through. Finally stumbled upon this page and all I was missing was opening the port ofmy PC in Windows Firewall! arrrggghhhh... Thanks a ton dude
Sign In·View Thread·Permalink |
| Wamp server access Member 105006382-Jan-14 20:22 |  | Member 10500638 | 2-Jan-14 20:22
I'm still having trouble.I didn't use any router but lan port and established connection between two pc.Server pc is working but client pc can't access localhost. What should i do?
Sign In·View Thread·Permalink |
| WAMP SERVER CONFIGURATION Tsewor10-Dec-13 5:46 |  | Tsewor | 10-Dec-13 5:46
I have been trying to create a intranet server with the settings I got from here but yet could not work well so far, so I was wondering if these configurations work as said, what additional hardware is require if there would be any because I need my intranet site to work.Please
Sign In·View Thread·Permalink |
| WAMP QUERY Nabajyoti Das17-Jan-13 22:45 |  | Nabajyoti Das | 17-Jan-13 22:45
i tried your settings but still i am not able to access my locally installed JOOMLA CMS from another machine within the LAN... Moreover i would like to know what difference does it make if we change the port number from 80 to 8081..????
Sign In·View Thread·Permalink |
| Re: WAMP QUERY Jaiswar Vipin Kumar R.17-Jan-13 23:33 |  | Jaiswar Vipin Kumar R. | 17-Jan-13 23:33
Hi, It Should work irr-respective of any PHP technologies. Please check on you application level. On the port number, yes i always recommend same because when you trying to say that it's server then it should accessible alway. Most of the time it happen that other services are trying to occupy PORT which are mention in .ini file. Thanks Jaiswar Vipin Kumar R Thanks & Regards Jaiswar Vipin Kumar R.
Sign In·View Thread·Permalink |
| How To Access samaj.patel26-Nov-12 5:18 |  | samaj.patel | 26-Nov-12 5:18
i Have one server and 6 pcs. all the PC are connected in domain in lan now in my one of the PC not in my server i have Wamp Installed and in wamp there is some site which have .htaccess file to re-write URL now my problem is i able to access the wamp on my another machine but when i try to run that web site who have .htaccess file its can't run properly as my machine so how to set root path in another machine
Sign In·View Thread·Permalink |
| Access Wamp thru LAN aditya2kx21-Jul-12 8:54 |  | aditya2kx | 21-Jul-12 8:54
Hello, I saw your post on codeproject. I followed all the steps mentioned there. Still on my desktop when i type 192.168.1.4:8080 (Wamp running on laptop connected thru router) , I get error "access to / is forbidden " . The link to httpd.conf file after changes is https://www.dropbox.com/s/zvz0viriyr83qkf/httpd.conf .CAn you please check it whether it is right ? Regards
Sign In·View Thread·Permalink | 1.00/5 (1 vote)
| Re: Access Wamp thru LAN Jaiswar Vipin Kumar R.23-Jul-12 2:01 |  | Jaiswar Vipin Kumar R. | 23-Jul-12 2:01
Hi Dear, Please go on http.conf file and check this should work for you. Thanks & Regards Jaiswar Vipin Kumar R.
Sign In·View Thread·Permalink |
| Re: Access Wamp thru LAN Member 119635426-Sep-15 20:06 |  | Member 11963542 | 6-Sep-15 20:06
Hi , I went through your post,I configured my WAMP server according to your post ,but i am not getting output ,Is there anything else need to change at server side ? Regards , Arvind
Sign In·View Thread·Permalink |
Last Visit: 31-Dec-99 18:00 Last Update: 3-Oct-16 7:04 | Refresh | 1
General News Suggestion Question Bug Answer Joke Praise Rant Admin Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages. | Go to top

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160929.1 | Last Updated 31 May 2012
Select Language​▼
Article Copyright 2012 by Jaiswar Vipin Kumar R.
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid

# Original text

Contribute a better translation