Recently want to put their own projects through Ngrok hanging online, but found a problem, originally in their own computer to run all the normal procedures, the link to others, on the newspaper "net::err_connection_refused" error, baffled, This thought is the cause of Ngrok, later found that the link in their own computer opened completely normal, and began to search for reasons, summed up the following several situations:
1. Web page has plug-ins , such as Adblock, you can prohibit these plug-ins after the attempt, can also "ctrl+shift+n" into stealth mode;
2. No resources found, url is wrong , such as my machine in the configuration file in the configuration of the ctxstatic configured to Http://localhost:8080/morning/static, and then through the Ngrok to send the link to others, When they visit, they will look for the path from their machine, and will naturally report this error, the solution: 1, change to the local ip;2, to ${pagecontext.request.contextpath}/static.