hi, i have installed XAMPP, but i would like to run my localhost from another computer..

michaelsmith commented: you could type localhost's computer name +0

Recommended Answers

All 16 Replies

Type in the ip address of your computer. If you are using a router, you may have to enable port forwarding.

or you could type your localhost's computer name

For example if you have two computers (that are on the same local area network!), the computer with the name "ComputerA" is running XAMPP, and you want to access this XAMPP server from the computer with the name "ComputerB", then here's what you do:

On ComputerB, start up your web browser. In the address bar, type: ComputerA/projectname. For example if you have a project called "testproject" in your XAMPP's htdocs folder, you can access it by going to "ComputerA/testproject". Hope this helps :).

Thanks to all...ya i tried this,but
following error will be appeared..i don't know the exact problem..

Access forbidden!
New XAMPP security concept:
Access to the requested directory is only available from the local network.
This setting can be configured in the file "httpd-xampp.conf".
If you think this is a server error, please contact the webmaster.
Error 403
10-Feb-12 10:05:12 AM
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0

go to xapmm-control in the task bar


a notepad will open with the config file

Search for Listen 80

one line above it,there will be something like this:12.34.56:80

change it

12.34.56:80 --> <ur ip address eg:>:80

restart the apache and check it
hopefully it will work...

Open httpd.conf

ServerName localhost:80
#ServerName xxx.xxx.x.x:80
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other 
# <Directory> blocks below.
<Directory />
    AllowOverride none
    Require all denied

Now change to

<Directory />
    AllowOverride All
    Require all granted

save it and restart apache

I am trying to do the same. I have made the changes to the Apache http.conf file

But when I try to start I get the following error message
This site can’t be reached took too long to respond.
Search Google for wordpress

My Windows 7 machine is
My Windows 10 WAMP64 server is at

I can net use back and forth between the systems.
Sounds like a networking situation, just not sure on which machine.

I'm trying to access a database that is hosted in a MAC localhost from my anroide device which are both connected to the same network. The connect both devices to the same network. You will need to connect with both devices to the same network, find the ip address of your computer for windows, and visiting control pannel or find the host name of your computet.

It is possible to access localhost from another computer. Check below process,

1.Get the internal IP or Static IP of the server (Ex:
2.Open XAMPP>apache>conf>httpd.conf file in notepad
3.Search for Listen 80
4.Above line would read like- #Listen /
5.Change the IP address and replace it with the static IP
6.Save the httpd.conf file ensuring that the server is pointed to #Listen
7.In the application root config.php (db connection) replace localhost with IP address of the server

At that point other individuals can access to your site by that IP. You can locate your neighborhood system's IP by go to cmd or press Winkey + R at that point type in "ipconfig". It will give out some data and your neighborhood IP should look like 192.168.1.x . localhost is an extraordinary hostname that quite often makes plans to

All DIVs have best and left parameters. This is on the grounds that, these DIVs are resiziable and moveable. After DIV size and position (left and best) are set, above html code is connected to recently made html page.

Your answer amazing and works without best and left position parameters. Would you be able to recommend somthing that consequently reposition DIVs (with best and left positions) when program is resized.

commented: ¯\_(ツ)_/¯ +0
commented: . -3

Interface the two gadgets to a similar system. You'll have to associate the two gadgets to a similar system.

Discover the IP address of your PC. For Windows, you can discover the IP address by visiting Control Panel.

Discover the host name of your PC.

Open your versatile program and visit the IP address or host name.

commented: ¯\_(ツ)_/¯ -1

U can use BrowserSync with GulpJS it's very clean and nice tool

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.