wampserver写的网站,怎么让外网访问
wampserver写的网站,如何让外网访问?
我在wampserver的wwww目录下面写了一个网站。现在在本公司的局域网内,别人的电脑通过我的IP地址可以访问得到我的网站。请问如何能让外网也可访问得到呢?急!
------解决方案--------------------
花生壳
------解决方案--------------------
局域网内的人通过IP可以访问你的网站吧.而不是互联网上的人能访问你的网站
1.在局域网的路由设置端口映射到你这个ip 和 端口上 80
2.注册一个国际域名指到公司的公网ip上(固定IP地址)
3.设置apache 绑定域名
------解决方案--------------------
------解决方案--------------------
免费注册的域名,要设置为花生壳DNS解析服务
然后安装客户端登陆帐户就激活解析了吧,一会就能访问到了。很早玩过,详细过程记不住了
------解决方案--------------------
需要改路由器把80端口的包NAT到你的内网服务器,还要在路由器上配置自动登录花生壳做DDNS,这样你买个域名就可以始终域名访问了。
------解决方案--------------------
其实你还不如花个100块钱买个虚拟主机,啥事都省了,放代码就行了。
------解决方案--------------------
很简单啊,点击右下角的wamp图标,勾选 在线,等重启好了,局域网其它的机子就可以用IP访问了,如果是外网要访问,就要在路由上设置端口影射了,假如你的apache用的是80端口你就要影射80端口到你的机子IP,如果你的电脑有防火墙,你又要得在防火墙设置下规则了。如果以上做到了,应该就能正常访问了
------解决方案--------------------
然后在外网访问就要用到外网的IP,你可以在本地打开 www.ip.cn看下你的外网IP,得到IP后,外网用户就可以通过 http://外网IP/ 这样就可以访问了(如果你的apache是80端口),如果不是80端口,就要这样访问 http://外网IP:端口号/ 这样访问
如 http://13.29.23.11:8080/
------解决方案--------------------
花生壳 外网不能用
------解决方案--------------------
下载花生壳咯~~~
------解决方案--------------------

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

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

To set up a CGI directory in Apache, you need to perform the following steps: Create a CGI directory such as "cgi-bin", and grant Apache write permissions. Add the "ScriptAlias" directive block in the Apache configuration file to map the CGI directory to the "/cgi-bin" URL. Restart Apache.

When the Apache 80 port is occupied, the solution is as follows: find out the process that occupies the port and close it. Check the firewall settings to make sure Apache is not blocked. If the above method does not work, please reconfigure Apache to use a different port. Restart the Apache service.

The steps to start Apache are as follows: Install Apache (command: sudo apt-get install apache2 or download it from the official website) Start Apache (Linux: sudo systemctl start apache2; Windows: Right-click the "Apache2.4" service and select "Start") Check whether it has been started (Linux: sudo systemctl status apache2; Windows: Check the status of the "Apache2.4" service in the service manager) Enable boot automatically (optional, Linux: sudo systemctl

Apache connects to a database requires the following steps: Install the database driver. Configure the web.xml file to create a connection pool. Create a JDBC data source and specify the connection settings. Use the JDBC API to access the database from Java code, including getting connections, creating statements, binding parameters, executing queries or updates, and processing results.

To delete an extra ServerName directive from Apache, you can take the following steps: Identify and delete the extra ServerName directive. Restart Apache to make the changes take effect. Check the configuration file to verify changes. Test the server to make sure the problem is resolved.

There are 3 ways to view the version on the Apache server: via the command line (apachectl -v or apache2ctl -v), check the server status page (http://<server IP or domain name>/server-status), or view the Apache configuration file (ServerVersion: Apache/<version number>).

How to configure Zend in Apache? The steps to configure Zend Framework in an Apache Web Server are as follows: Install Zend Framework and extract it into the Web Server directory. Create a .htaccess file. Create the Zend application directory and add the index.php file. Configure the Zend application (application.ini). Restart the Apache Web server.

This article discusses how to improve Hadoop data processing efficiency on Debian systems. Optimization strategies cover hardware upgrades, operating system parameter adjustments, Hadoop configuration modifications, and the use of efficient algorithms and tools. 1. Hardware resource strengthening ensures that all nodes have consistent hardware configurations, especially paying attention to CPU, memory and network equipment performance. Choosing high-performance hardware components is essential to improve overall processing speed. 2. Operating system tunes file descriptors and network connections: Modify the /etc/security/limits.conf file to increase the upper limit of file descriptors and network connections allowed to be opened at the same time by the system. JVM parameter adjustment: Adjust in hadoop-env.sh file
