[英]How I can access FTP server based on different network
I have set up a FTP server with Apache FTP server on local machine, this machine can access internet but its IP address cannot be accessed externally. 我已经在本地计算机上使用Apache FTP服务器设置了FTP服务器,该计算机可以访问Internet,但是无法从外部访问其IP地址。
I also have another machine in a different city - it can access the internet but it is same in that its IP address cannot be accessed externally. 我在另一座城市也有另一台机器-它可以访问互联网,但相同之处在于它的IP地址无法从外部访问。 The two computers are not on the same network so they are unable ping each other. 两台计算机不在同一网络上,因此它们无法相互ping通。
How I can use FTP client from another machine to access the FTP server, I know it should be impossible but do you guys have any workarounds (whatever code change or other approaches) 我如何使用另一台计算机上的FTP客户端访问FTP服务器,我知道这应该是不可能的,但是你们有任何解决方法(无论代码更改或其他方法如何)
I am in the US - do you guys have idea how I can make my home IP publicly accessible? 我在美国-你们是否知道如何使我的家庭IP公开可用?
it is very possible if you control the firewall that the server is behind. 如果您控制服务器位于其后的防火墙,则很有可能。 this is standard network configuration, and you can find hundreds of tutorials online, but the most important bit of information is the firewall , not the ftp server. 这是标准的网络配置,您可以在线找到数百本教程,但是最重要的信息是防火墙 ,而不是ftp服务器。 you configure port forwarding on your firewall to forward incoming ftp requests to your internal ftp server. 您可以在防火墙上配置端口转发,以将传入的ftp请求转发到内部ftp服务器。 also, you will want to use "passive" ftp from the client because the client is also behind a firewall. 另外,您将要使用来自客户端的“被动” ftp,因为客户端也位于防火墙后面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.