n8n على جهازك مجاناً وموصّول أونلاين
2 min read
16 days ago
Published on Apr 25, 2025
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
In this tutorial, you will learn how to host n8n on your local machine and connect it to an external link using Ngrok, all for free and without the need for a paid server or hosting. This guide is perfect for those looking to automate workflows and connect various tools effortlessly.
Step 1: Install n8n on Your Device
- Download Node.js
- Visit the Node.js website and download the latest LTS version suitable for your operating system.
- Install n8n
- Open your terminal or command prompt.
- Run the following command to install n8n globally:
npm install n8n -g
Step 2: Run n8n Locally
- Start n8n
- In your terminal, start n8n by entering:
n8n
- This command will run the n8n application on your local machine and provide a local URL (typically
http://localhost:5678
) where you can access the n8n interface.
- In your terminal, start n8n by entering:
Step 3: Set Up Ngrok for External Access
- Download Ngrok
- Visit the Ngrok website and sign up for a free account.
- Download the Ngrok application for your operating system.
- Install Ngrok
- Unzip the downloaded file and move it to a directory included in your system’s PATH.
- Connect Ngrok to Your Account
- In your terminal, authenticate Ngrok with your account by running:
ngrok authtoken YOUR_AUTH_TOKEN
- Replace
YOUR_AUTH_TOKEN
with the token provided in your Ngrok dashboard.
- In your terminal, authenticate Ngrok with your account by running:
- Expose n8n with Ngrok
- Run the following command in your terminal to create a secure tunnel to your local n8n instance:
ngrok http 5678
- You will receive a public URL (like
https://abc123.ngrok.io
) that can be used to access your n8n instance from anywhere.
- Run the following command in your terminal to create a secure tunnel to your local n8n instance:
Step 4: Use n8n for Automation
- Access n8n Interface
- Open the Ngrok public URL in your web browser to access the n8n interface.
- Create Workflows
- Start creating your automation workflows by dragging and dropping nodes into the canvas.
- Integrate various tools and services as needed.
Conclusion
You have successfully installed n8n on your device, run it locally, and connected it using Ngrok for external access. This setup allows you to automate tasks and connect different applications effortlessly. For further exploration, consider diving into more complex workflows or integrating additional tools within n8n. Happy automating!