localhost

SSH端口转发

蓝咒 提交于 2019-12-28 16:21:17
端口转发两大功能 加密SSH Client 端至SSH Server 端之间的通讯数据 突破防火墙或内网的限制完成一些之前无法建立的TCP 连接 正向端口转发 L 表示正向转发; -N 表示非不执行命令,只做端口转发; -f 表示在后台运行 ssh -NfL < local port > : < dest addr > : < dest port > < usr@jump addr > # 举例 client$ ssh -NfL 1080:server:1081 jumpbox 把 client 的1080端口通过 跳板机jump 转发到 server 的1081端口 在client端建立转发连接 数据传递过程 首先数据会发送到本机1080端口 再在本机开一个随机端口,充当ssh客户端,把数据流量发送到jumpbox22端口的ssh服务端 jumpbox收到数据以后,解密数据,临时开一个随机端口充当客户端,再把流量发送到server的1081端口 本地到 ssh 跳板机这一段,是完全加密的。跳板机到服务器的这一段,依然是明文的 反向端口转发 -R 表示反向转发 ssh -NfR < client port > : < dest addr > : < dest port > < usr@client addr > # 举例 jump$ ssh -NfR 1080:server

Localhost not working in Chrome, 127.0.0.1 does work

China☆狼群 提交于 2019-12-28 11:54:08
问题 I'm trying to run a local node server, but for whatever reason localhost:3000 does not work. The error page states This webpage is not available ERR_CONNECTION_CLOSED However, 127.0.0.1:3000 does work. I have tried making changes to my hosts file, but to no avail. Does anyone have any idea what's causing the problem? Chrome version is 46.0.2490.80 m 回答1: Here are the steps I took to make this work correctly: Edited my hosts file so 127.0.0.1 localhost. was present, and saved the file Cleared

Localhost not working in Chrome, 127.0.0.1 does work

醉酒当歌 提交于 2019-12-28 11:54:04
问题 I'm trying to run a local node server, but for whatever reason localhost:3000 does not work. The error page states This webpage is not available ERR_CONNECTION_CLOSED However, 127.0.0.1:3000 does work. I have tried making changes to my hosts file, but to no avail. Does anyone have any idea what's causing the problem? Chrome version is 46.0.2490.80 m 回答1: Here are the steps I took to make this work correctly: Edited my hosts file so 127.0.0.1 localhost. was present, and saved the file Cleared

Connect to localhost:3000 from another computer | expressjs, nodejs [duplicate]

邮差的信 提交于 2019-12-28 08:42:32
问题 This question already has answers here : How can I access localhost from another computer in the same network? [duplicate] (2 answers) Closed 4 years ago . I'm currently working on a project and I would like to test it from another computer or phone. This computer is connected on the same network. How can I connect to http://localhost:3000 ? I'm using expressjs ( nodejs module ) as server. 回答1: Configure your application to run on 0.0.0.0 instead of 127.0.0.0(localhost) . For example: app

Connect to localhost:3000 from another computer | expressjs, nodejs [duplicate]

╄→гoц情女王★ 提交于 2019-12-28 08:40:55
问题 This question already has answers here : How can I access localhost from another computer in the same network? [duplicate] (2 answers) Closed 4 years ago . I'm currently working on a project and I would like to test it from another computer or phone. This computer is connected on the same network. How can I connect to http://localhost:3000 ? I'm using expressjs ( nodejs module ) as server. 回答1: Configure your application to run on 0.0.0.0 instead of 127.0.0.0(localhost) . For example: app

Connect to localhost:3000 from another computer | expressjs, nodejs [duplicate]

▼魔方 西西 提交于 2019-12-28 08:39:54
问题 This question already has answers here : How can I access localhost from another computer in the same network? [duplicate] (2 answers) Closed 4 years ago . I'm currently working on a project and I would like to test it from another computer or phone. This computer is connected on the same network. How can I connect to http://localhost:3000 ? I'm using expressjs ( nodejs module ) as server. 回答1: Configure your application to run on 0.0.0.0 instead of 127.0.0.0(localhost) . For example: app

Bad Request- Invalid Hostname while connect to localhost via wifi from mobile phone

安稳与你 提交于 2019-12-28 07:36:49
问题 I get the Bad Request- Invalid Hostname [HTTP ERROR 400] while trying connect my laptop's localhost. Actually, I am learning to develop mobile web using jQuery Mobile. I want to see the layout of the web whether fit my phone size. i have added the port number which given by the Visual Studio with this way: Control Panel> Firewall> Advanced Settings> Inbounce Rules> New Rule. Then, i get my IP address by typing " ipconfig " at Command Prompt. After that, I use my Android phone browser (Mozilla

Bad Request- Invalid Hostname while connect to localhost via wifi from mobile phone

烂漫一生 提交于 2019-12-28 07:36:35
问题 I get the Bad Request- Invalid Hostname [HTTP ERROR 400] while trying connect my laptop's localhost. Actually, I am learning to develop mobile web using jQuery Mobile. I want to see the layout of the web whether fit my phone size. i have added the port number which given by the Visual Studio with this way: Control Panel> Firewall> Advanced Settings> Inbounce Rules> New Rule. Then, i get my IP address by typing " ipconfig " at Command Prompt. After that, I use my Android phone browser (Mozilla

test the localhost in android emulator

自闭症网瘾萝莉.ら 提交于 2019-12-28 04:51:15
问题 My web application runs in localhost server. In my emulator the URL is http://localhost:8080/myaction Is it possible to retrieve the information from the server? 回答1: Localhost is device's own loopback interface, if you're trying to access your development machine use 10.0.2.2. More about it here. 来源: https://stackoverflow.com/questions/2234742/test-the-localhost-in-android-emulator

How to change the URL from “localhost” to something else, on a local system using wampserver?

时间秒杀一切 提交于 2019-12-28 03:20:07
问题 On a Windows machine, there's a system running on the local wampserver, but while the application is running on localhost, the URL says otherwise. While I would expect the URL to be like this based on the directory structure: http://localhost/pro/include/db_report.php The developer has managed to do this: http://ap-mispro/pro/include/db_report.php So instead of localhost , the URL says ap-mispro . And both URLs work fine. How is the second URL made? I tried checking out the wampmanager.ini