如何从远程计算机访问Wamp-Server [英] How to access Wamp-Server from a remote Computer

查看:220
本文介绍了如何从远程计算机访问Wamp-Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WAMP服务器来托管本地网络目录。当我从本地区域(LAN)中的任何PC访问它时,我可以很好地使用它。我做的类似的事情是我通过互联网从远程PC访问网络目录,但那时我的服务器直接通过互联网连接,所以它工作正常。





现在当我不得不从远程PC(比如PC)访问运行WAMP(比如PC-1)的主机PC时出现问题-10)通过互联网,主机PC(PC-1)在局域网中连接。

这意味着如何解决它,因为我们只需要指定一个IP来访问PC-1。然而,当我们通过局域网中的互联网连接时,它需要使用2-IP进行识别(即1个IP用于LAN,第2个用于互联网)。





除了IP地址之外还需要什么其他的东西以及我们从哪里获得它的详细信息。

如果我对描述不清楚,请告诉我。

解决方案

在httpd.conf文件中

进行更改



#控制谁可以从中获取内容这个服务器。



订单允许,拒绝

#拒绝所有< ---原始价值

允许所有#new值,这将使您的服务器能够处理非本地请求



您将在C中找到此文件:> wamp> apache> conf

此外,您还需要在进行这些更改后重新启动服务器


您是否正在使用路由器连接到互联网... ??

如果是,则将Internet-IP地址分配给路由器。每当您向该Internet-IP地址发送HTTP请求时,它将转到路由器而不是PC-1(WAMP服务器正在运行)

您需要进行端口转发为目的。它会强制路由器将它收到的所有HTTP请求重定向到您的PC-1。

执行此操作后,您可以提供Internet-IP地址来访问PC-1

您使用的路由器(公司,型号)??

您通常可以在公司网站上找到有关它的帮助。


I am using WAMP server to host a local web-directory . I can work well with this when I am in accessing it from any PC within the local area (LAN) . Similar thing I did was I accessed web-directories from a remote PC through internet but at that time my server was directly connected through internet so it works fine.


Now problem comes when I have to access a host PC running WAMP (say PC-1) from a remote PC(say PC-10) through internet where the host PC (PC-1) is connected in LAN .
That means how to address it since we need to specify only one IP to access PC-1 . Whereas when we connect it through internet in LAN it needs identification with 2-IP (i.e. 1 IP for LAN and 2nd for internet ).


What other things are required apart from IP address and from where do we get its details.
Please let me know if I am not still clear regarding the description.

解决方案

In the httpd.conf file
make the changes
#
# Controls who can get stuff from this server.
#
Order allow,deny
# Deny from all <--- original value
Allow from all # new value, which will enable your server to process non-local requests as well

You will find this file in C: > wamp > apache > conf
Also you'll need to restart the server after making these changes


Are you using a router to connect to the internet...??
If yes, the Internet-IP address is assigned to the router. Whenever you'll send HTTP request to that Internet-IP address, it will go to router and not to PC-1 (on which the WAMP server is running)
You'll need to do port forwarding for the purpose. It'll force the router to redirect all the HTTP requests that it receives to your PC-1.
After you do this, you can provide the Internet-IP address to access PC-1


Which router ( company, model no. ) are you using??
You'll generally find help regarding to it on the company's website.


这篇关于如何从远程计算机访问Wamp-Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆