How to Access Xampp Server Remotely

Feb 3, 2016 01:50 AM
Sep 14, 2016 07:37 PM
635900321234163406.jpg

In my last article, I discussed:

How to install xampp

How to install wordpress on xampp

The following article describes how to access that wordpress site both remotely and from a different computer on the same network

635900321773697101.jpg

Step 1: Edit Httpd-vhosts.conf File

Assuming you're using windows, navigate to the following folder: C:\xampp\apache\conf\extra and double click the httpd-vhosts file to edit.

Append the following to the end of the file.



DocumentRoot "C:\xampp\htdocs\wordpress"



AllowOverride All

Require all granted



Step 2: Edit /Etc/Hosts File

Open a blank document, make sure to open your text editor using 'run as administrator' (right click text editor icons and scroll to select 'Run as Administrator'. You need to do this for permissions purposes. Once your text editor is open, click -> file -> open and navigate to 'C:\windows\system32\drivers\etc.

In your command prompt, get the ip address of your computer by typing 'ipconfig' then add the following at the end of the file:

wordpress.localhost

ex. 192.168.1.191 wordpress.localhost

Step 3: Confirm

To confirm everything was set up correctly, you should now be able to access your wordpress pentesting lab from your attacking computer on the same network. This particular example will allow you to access it remotely as well.

Comments

No Comments Exist

Be the first, drop a comment!