我在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

ThesecrettokeepingaPHP-poweredwebsiterunningsmoothlyunderheavyloadinvolvesseveralkeystrategies:1)ImplementopcodecachingwithOPcachetoreducescriptexecutiontime,2)UsedatabasequerycachingwithRedistolessendatabaseload,3)LeverageCDNslikeCloudflareforservin

You should care about DependencyInjection(DI) because it makes your code clearer and easier to maintain. 1) DI makes it more modular by decoupling classes, 2) improves the convenience of testing and code flexibility, 3) Use DI containers to manage complex dependencies, but pay attention to performance impact and circular dependencies, 4) The best practice is to rely on abstract interfaces to achieve loose coupling.

Yes,optimizingaPHPapplicationispossibleandessential.1)ImplementcachingusingAPCutoreducedatabaseload.2)Optimizedatabaseswithindexing,efficientqueries,andconnectionpooling.3)Enhancecodewithbuilt-infunctions,avoidingglobalvariables,andusingopcodecaching

ThekeystrategiestosignificantlyboostPHPapplicationperformanceare:1)UseopcodecachinglikeOPcachetoreduceexecutiontime,2)Optimizedatabaseinteractionswithpreparedstatementsandproperindexing,3)ConfigurewebserverslikeNginxwithPHP-FPMforbetterperformance,4)

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl


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

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Chinese version
Chinese version, very easy to use

WebStorm Mac version
Useful JavaScript development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver Mac version
Visual web development tools
