


How to quickly build a website with phpstudy so that others can access it
Making the website accessible to the outside world through PHP Study requires the following steps: configure port mapping and change the server port to an externally accessible port. Add a firewall rule making sure "php-cgi.exe" is selected under both "Private" and "Public" networks. Get the public IP. Inform visitors of the public IP, server port, and website subdirectory (if any).
Achieving external access to the website through PHP Study
How to let others access the website built through PHP Study ?
Step 1: Configure port mapping
- Open PHP Study, click the "Tools" menu > "Configuration" > "Port Mapping" .
- Change the "Server Port" to an externally accessible port, such as 8080.
- Change the "Local Server" port to the default port of PHP Study, such as 80.
Step 2: Add firewall rules
- Open Windows Defender Firewall and click "Allow an app or feature through Windows Defender Firewall".
- Click the "Change Settings" button.
- In the "Allowed apps and features" list, find "php-cgi.exe" and make sure it is selected under both "Private" and "Public" networks.
Step 3: Get the public IP
- Visit whatismyipaddress.com in your browser to get your public IP address.
Step 4: Inform others of your public IP address
- Indicate your public IP address, server port and subdirectory of your website ( If so) inform visitors. For example, if your website is at "http://localhost/mywebsite", tell it as "http://[your public IP]:[server port]/mywebsite".
How do visitors get to your website?
Visitors can use the URL you provide to access your website in the browser, such as:
<code>http://[你的公网IP]:[服务器端口]/mywebsite</code>
Note:
- Make sure the server port is consistent with the port specified in the firewall rule.
- If your router has a firewall, you will also need to enable the server port in it.
- If your Internet Service Provider (ISP) blocks server ports, you will need to contact them for assistance.
The above is the detailed content of How to quickly build a website with phpstudy so that others can access it. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

This article guides configuring Xdebug within phpStudy for use with IDEs like PhpStorm & VS Code. It details Xdebug installation, php.ini configuration (including xdebug.mode, xdebug.client_host, xdebug.client_port), IDE setup, and troubleshooti

The article discusses configuring phpStudy for secure HTTP authentication, detailing steps like enabling HTTPS, setting up .htaccess and .htpasswd files, and best practices for security.Main issue: Ensuring secure HTTP authentication in phpStudy thro

Article discusses setting up custom session handlers in phpStudy, including creation, registration, and configuration for performance improvement and troubleshooting.

phpStudy enables testing various database connections. Key steps include installing servers, enabling PHP extensions, and configuring scripts. Troubleshooting focuses on common errors like connection failures and extension issues.Character count: 159

This article explains how to configure phpStudy to use specific PHP versions. It details selecting and switching between multiple installed PHP versions via the phpStudy control panel, emphasizing the necessity of server restarts. Troubleshooting st

Article discusses using phpStudy for PHP file uploads, addressing setup, common issues, configuration for large files, and security measures.

The article details using phpStudy for PHP cookie testing, covering setup, cookie verification, and common issues. It emphasizes practical steps and troubleshooting for effective testing.[159 characters]

This article details backing up and restoring phpStudy environments. It covers creating full backups (compressed archives, file copies, system images), restoring from these backups, and best practices for configuration file backups. The article als
