Introduction #
User development machine may be connected to a secure network behind a firewall. To work around access restrictions, ngrok runs a small client process on the user machine which creates a private connection tunnel to the cloud service. Your localhost
development server is mapped to a ngrok.io
sub-domain, which a remote user can then access. There’s no need to expose ports, set up forwarding, or make other network changes.
The ngrok client software is available for Windows, macOS, and Linux.
Download from here
Please follow the installation steps by link
How to create ngrok local server? #
Case 1 ngrok using with the old Agent control board
- Click and start ngrok
- Write command ngrok http 9091
- Press Enter button
- Copy this forwarding link user just created
- Go to Salesforce Org.
- Create a Remote Site Setting
- Select your Integration
- Go to Agent Control Board(Old) custom link on the Integration detail page
- Select your Connection integration.properties Name
- Click on the Continue button
- Username: admin
- Password: 12345
- Hostname/Public IP: https://ff42-2405-201-7003-8041-94e4-3194-56c7-738b.ngrok.io
- Port/Port forwarding: 443
[su_box title=”Note” box_color=”#2a8af0″ title_color=”#000000″]Hostname/Public IP is for single use, in case user stop ngrok app then again user have to create Hostname/Public IP address and create copy/paste on salesforce Remote Site. [/su_box]
- Provide your Salesforce credentials
- Username
- Password
- Select Server Environment
- Click on Ping Salesforce Connection
- Message pop up on top Agent Connection Ping successful connection and status is ONLINE
- Similarly when the user clicks on Ping Salesforce Connection
- Message pop up on top Salesforce Connection Ping successful connection and status is ONLINE
- Click on Save to save your whole Ping connection configuration.
Case 2 ngrok using with the Agent control board
- Click and start ngrok
- Write command ngrok http 9055
- Press Enter button
- Copy this forwarding link user just created
- Go to Salesforce Org.
- Create a Remote Site Setting
- Select your Integration
- Go to the Agent Control Board custom link on the Integration detail page
- Select your Connection integration.properties Name
- Select Type Adapter Type
- Click on the Continue button
- Username: skyvva
- Password: skyvva@12! or Skyvva@12!
- Hostname/Public IP: https://ff42-2405-201-7003-8041-94e4-3194-56c7-738b.ngrok.io
- Port/Port forwarding: 443
[su_box title=”Note” box_color=”#2a8af0″ title_color=”#000000″]Hostname/Public IP is for single use, in case user stop ngrok app then again user have to create Hostname/Public IP address and create copy/paste on salesforce Remote Site. [/su_box]
- Provide your Salesforce credentials
- Username
- Password
- Select Server Environment
- Consumer Key
- Consumer Secret
- Click on Ping Salesforce Connection
- Message pop up on top Ping Connection, Connection stablished successfully and status is ONLINE
- Click on Ping Salesforce Connection
- Message pop up on top Ping Salesforce Connection Salesforce Login successful and status is ONLINE
- Click on Save to save your whole Ping Connection configuration.
Summary: #
Now the user knows how to use ngrok in a local machine and create a host by forwarding localhost and creating a ping connection between both SKYVVA’s old Agent Control Board and New Agent Control Board.