Skip to main content

从一个 nat 连接到另一个 nat 的远程术语

项目描述

term_from_nat

==========================

在 nat 中连接一个终端。当您希望有人帮助您,但他无法连接到您的 linux 时使用,因为您的计算机在 nat 中。

它有点像 ssh,不同的是:

ssh是:客户端连接到服务器。在服务器计算机上做某事。

这个term_from_nat是:客户端连接到服务器。在客户端计算机上做某事。

在以下情况下使用:

1 when you want somebody to do something in you linux computer
2 but he could not connect to your linux because your computer is inside a nat

如何使用:

COMPUTER1(one nat):
1. pip install term_from_nat
2. python3 -m term_from_nat  or just type: term_from_nat
will show some tips:
client started, use: 
python3 -m term_from_nat -s -t  378885 
 to start the server

COMPUTER2(another nat):
1. pip install term_from_nat
2. python3 -m term_from_nat -s -t  378885   
     or just: term_from_nat -s -t  378885

that's all.

old/deprecated usage:
normal usage uses a bridge to connect each-other.
if you have a public ip server, then, you could run this, connect each other without bridge.
1 COMPUTER1: run python3 server_lite.py  {server_port} on one computer that has a public ip.
2 COMPUTER2: run python3 client_lite.py {server_ip} {server_port} on the computer that inside a nat
3 COMPUTER1: type you command.

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

term_from_nat-0.1.6.tar.gz (18.8 kB 查看哈希)

已上传 source

内置分布

term_from_nat-0.1.6-py3-none-any.whl (22.3 kB 查看哈希)

已上传 py3