{"id":18552141,"url":"https://github.com/jiangshan00001/term_from_nat","last_synced_at":"2025-07-24T23:06:45.025Z","repository":{"id":57474276,"uuid":"413258546","full_name":"Jiangshan00001/term_from_nat","owner":"Jiangshan00001","description":"connect a terminal inside a nat. used when you want somebody to help you, but he could not connect to your linux because your computer is inside a nat.","archived":false,"fork":false,"pushed_at":"2021-10-11T13:39:06.000Z","size":39,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T03:37:01.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jiangshan00001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-04T03:10:16.000Z","updated_at":"2021-10-11T13:39:09.000Z","dependencies_parsed_at":"2022-09-12T19:40:23.004Z","dependency_job_id":null,"html_url":"https://github.com/Jiangshan00001/term_from_nat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiangshan00001%2Fterm_from_nat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiangshan00001%2Fterm_from_nat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiangshan00001%2Fterm_from_nat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiangshan00001%2Fterm_from_nat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jiangshan00001","download_url":"https://codeload.github.com/Jiangshan00001/term_from_nat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328389,"owners_count":22052633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T21:13:13.289Z","updated_at":"2025-05-15T11:11:36.064Z","avatar_url":"https://github.com/Jiangshan00001.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# term_from_nat\n\n=========================\n\nconnect a terminal inside a nat. \nused when you want somebody to help you, but he could not connect to your linux because your computer is inside a nat.\n\nit is somehow like the ssh, the different is that:\n\nthe **ssh** is: client connect to server. **do something in the server computer.**\n\nthis **term_from_nat** is: client connect to server. **do something in the client computer.**\n\n\nused when:\n----------------\n\n```\n1 when you want somebody to do something in you linux computer\n2 but he could not connect to your linux because your computer is inside a nat\n```\n\nhow to use:\n-----------------------------\n```\nCOMPUTER1(one nat):\n1. pip install term_from_nat\n2. python3 -m term_from_nat  or just type: term_from_nat\nwill show some tips:\nclient started, use: \npython3 -m term_from_nat -s -t  378885 \n to start the server\n \nCOMPUTER2(another nat):\n1. pip install term_from_nat\n2. python3 -m term_from_nat -s -t  378885   \n     or just: term_from_nat -s -t  378885\n\nthat's all.\n\n```\n\n\nTBD:\n1. windows support. currently only linux is supported as python pty package limit.\n2. pty resize support. currently it uses the default pty columns x rows and not do a resize.\n3. one stable mqtt broke.\n4. mqtt auth support.\n\n\n\n\n\n\nold/deprecated usage:\nnormal usage uses a bridge to connect each-other.\nif you have a public ip server, then, you could run this, connect each other without bridge.\n1. COMPUTER1: run python3 server_lite.py  {server_port} on one computer that has a public ip.\n2. COMPUTER2: run python3 client_lite.py {server_ip} {server_port} on the computer that inside a nat\n3. COMPUTER1: type you command.\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiangshan00001%2Fterm_from_nat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiangshan00001%2Fterm_from_nat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiangshan00001%2Fterm_from_nat/lists"}