The public network accesses Intranet Rails

Rails is installed locally and can only be accessed on the LAN. How can I access local Rails from the public network?

This article describes the specific implementation steps.

1. Preparation

1.1 Install and start Rails

The default Rails port installed is 3000.

2. Implementation steps

2.1 Download and unpack the Holer software package

Holer software package: holer-xxx.tar.gz

Holer supports a variety of OS platforms. Please select the Holer package that matches the local OS type.

2.2 Obtain Holer Access Key information

Apply for a proprietary Holer Access Key on the Holer website or use access key information that is publicly available in the open source community.

For example, the Holer information obtained by the application is as follows. Here, the Holer information is taken as an example:

--------------------------------------------- Holer Client : [email protected] Access Key : 6688daebe02846t88s166733595eee5d --------------------------------------------- Domain Name : holer65004.wdom.net Internet Address : holer.org:65004 Local Address : 127.0.0.1:3000 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

2.3 Start Holer service

Windows system platform:

Open the CMD console, enter the directory where the executable program is located, and execute the command:

holer-windows-xxx.exe -k 6688daebe02846t88s166733595eee5d

Linux or other system platform:

Execute the command: nohup. / holer – XXX – XXX – 6688 daebe02846t88s166733595eee5d k

2.4 Access the mapped public network address

You can access native Rails from the public network by entering the following URL in your browser.

http://holer65004.wdom.net or http://holer.org:65004

2.5 Problem consultation and help

When you encounter problems in the process of using Holer, you can first check the log information printed by the Holer console, so that it is easy to find out the specific reason of the problem.

For more examples of Holer usage, please refer to the official Holer blog.