Table of Contents
回复讨论(解决方案)
Home Backend Development PHP Tutorial wampserver写的网站,如何让外网访问?

wampserver写的网站,如何让外网访问?

Jun 23, 2016 pm 01:40 PM

我在wampserver的wwww目录下面写了一个网站。现在在本公司的局域网内,别人的电脑通过我的IP地址可以访问得到我的网站。请问如何能让外网也可访问得到呢?急!


回复讨论(解决方案)

花生壳

我在网上下载了一个“花生壳”软件。已经注册了一个免费的域名,接下来不知道如何操作了!!!

花生壳



花生壳下载了,但是不知道怎么用了!谢谢

局域网内的人通过IP可以访问你的网站吧.而不是互联网上的人能访问你的网站

1.在局域网的路由设置端口映射到你这个ip 和 端口上 80
2.注册一个国际域名指到公司的公网ip上(固定IP地址)
3.设置apache 绑定域名

局域网内的人通过IP可以访问你的网站吧.而不是互联网上的人能访问你的网站

1.在局域网的路由设置端口映射到你这个ip 和 端口上 80
2.注册一个国际域名指到公司的公网ip上(固定IP地址)
3.设置apache 绑定域名



谢谢!注册一个国际域名的花费大概是多少呢?如果有能零花费的方案更好了,比如说网上说的什么花生壳。因为我们只需要让省公司能访问得到(我们在下面分公司,都是同一个省的),检查一下子就可以了~

引用 4 楼  的回复:
局域网内的人通过IP可以访问你的网站吧.而不是互联网上的人能访问你的网站

1.在局域网的路由设置端口映射到你这个ip 和 端口上 80
2.注册一个国际域名指到公司的公网ip上(固定IP地址)
3.设置apache 绑定域名


谢谢!注册一个国际域名的花费大概是多少呢?如果有能零花费的方案更好了,比如说网上说的什么花生壳。因为我们只需要让省公司能访问……



国际域名 国内的大公司是 12x/年 这个样子,个人代理的可能会便宜些
国外的好像是 60-70/年 这个样子

花生壳也是要你的路由影射你本机的端口让外面能访问才能使用.花生壳本身也不提供域名吧?

如果是应付检查,找个免费的空间 弄弄得了.

免费注册的域名,要设置为花生壳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/    

花生壳 外网不能用

下载花生壳咯~~~

很简单啊,点击右下角的wamp图标,勾选 在线,等重启好了,局域网其它的机子就可以用IP访问了,如果是外网要访问,就要在路由上设置端口影射了,假如你的apache用的是80端口你就要影射80端口到你的机子IP,如果你的电脑有防火墙,你又要得在防火墙设置下规则了。如果以上做到了,应该就能正常访问了



请问哪里的右下角有wamp图标?

花生壳 外网不能用



你确定?

其实你还不如花个100块钱买个虚拟主机,啥事都省了,放代码就行了。



买虚拟主机怎么个过程?放代码的话我那些数据库里的表也可以放吗?

引用 11 楼 的回复:

很简单啊,点击右下角的wamp图标,勾选 在线,等重启好了,局域网其它的机子就可以用IP访问了,如果是外网要访问,就要在路由上设置端口影射了,假如你的apache用的是80端口你就要影射80端口到你的机子IP,如果你的电脑有防火墙,你又要得在防火墙设置下规则了。如果以上做到了,应该就能正常访问了


请问哪里的右下角有wamp图标?



wamp运行后在任务栏右下角不是有个 绿色的方框图标吗?  单击它后 会出现一个菜单,选择最后一个选项 put online 就行了

Apache2.4.x版wampserver本地php服务器如何让外网访问及启用.htaccess
http://www.ihref.com/read-16915.html

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Describe the SOLID principles and how they apply to PHP development. Describe the SOLID principles and how they apply to PHP development. Apr 03, 2025 am 12:04 AM

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

Explain the concept of late static binding in PHP. Explain the concept of late static binding in PHP. Mar 21, 2025 pm 01:33 PM

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

How to send a POST request containing JSON data using PHP's cURL library? How to send a POST request containing JSON data using PHP's cURL library? Apr 01, 2025 pm 03:12 PM

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

Framework Security Features: Protecting against vulnerabilities. Framework Security Features: Protecting against vulnerabilities. Mar 28, 2025 pm 05:11 PM

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.

How to automatically set permissions of unixsocket after system restart? How to automatically set permissions of unixsocket after system restart? Mar 31, 2025 pm 11:54 PM

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Customizing/Extending Frameworks: How to add custom functionality. Customizing/Extending Frameworks: How to add custom functionality. Mar 28, 2025 pm 05:12 PM

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.

See all articles