简体   繁体   English

如何访问基于不同网络的FTP服务器

[英]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.

相关问题 如何访问在本地网络上运行的服务器 - How to access a server running on a local network 无法从本地网络上的其他设备访问Mac上的节点服务器 - Cannot access node server on Mac from different device on local network 如何在终端或GUI中访问mysql社区服务器? - How can I access the mysql community server in terminal or by GUI? 如何用applescript打开“网络”文件夹 - how can I open “Network” folder with applescript 如何使本地网络用户可以访问不同端口的Apache macOS上的站点? - How to enable local network users to access sites on apache macOS on different ports? 如何通过 ssh 将文件上传到具有不同端口的服务器,然后是 22? - How can I upload a file via ssh to my server with a different port then 22? 在以--network host模式运行时,为什么不能从容器主机访问我的服务? - Why can't I access my service from my container host when running with `--network host` mode? 如何在Java上安装Mac OS X中的网络驱动器? - How can I mount network drive in Mac OS X on Java? 如何在Mac中更改Docker网络IP地址 - How can I change docker network ip address in Mac 如何通过 Swift 代码跟踪 macOS 中的网络流量? - How can I track the Network Traffic in macOS by Swift Code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM