简体   繁体   中英

How to access PHP files and SQL DB from localhost to other computers on the same network?

I have completed a project that includes some PHP files and a MySQL database on the localhost computer. Now, five computers that are on the same network need to be able to access those PHP files and the database. I tried using the IP address of the localhost computer on the client computers but no luck. All computers runs Windows 10, with Windows Defender ON. Any suggestions would be appreciated!

@Zberg 1 - I allowed for mysqld.exe, but httpd.exe is not listed. I am given an option to add extra application to be added. Which folder is httpd.exe sitting in? 2 - Added port 80 on the network router. 3 - There isn't a button for XAMP online. This is the error message on the client computers when tried to access the localhost: New XAMPP security concept:

Access to the requested object is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM