Skip to content

Configuration

Learn about all configuration options for InTunnel clients.

CLI Configuration

The CLI can be configured via:

  1. Command-line flags
  2. Environment variables
  3. Configuration file

Command-Line Flags

bash
intunnel -token YOUR_TOKEN -port 3000 -subdomain myapp -domain intunnel.cloud
FlagDescriptionDefault
-tokenAuthentication token(required)
-portLocal port to expose3000
-subdomainSubdomain to use(from token)
-domainDomain to useintunnel.cloud

Environment Variables

bash
export INTUNNEL_TOKEN="your-token"
export INTUNNEL_PORT="8080"
export INTUNNEL_SUBDOMAIN="myapp"
export INTUNNEL_DOMAIN="intunnel.cloud"

intunnel

Configuration File

Create ~/.intunnel/config.yaml:

yaml
token: "your-token-here"
port: 3000
subdomain: "myapp"
domain: "intunnel.cloud"

Full configuration file reference →

GUI Configuration

The GUI stores settings automatically:

SettingLocation
Windows%APPDATA%\InTunnel\settings.json
macOS~/Library/Application Support/InTunnel/settings.json
Linux~/.config/intunnel/settings.json

INFO

Tokens are not saved automatically for security. You need to enter your token each time.

Local Service Configuration

Common Frameworks

Configure your local framework to accept connections:

React (Create React App)

bash
# Already works on port 3000 by default
npm start

Next.js

bash
# Uses port 3000 by default
npm run dev

Vue.js

bash
# Uses port 8080 by default
npm run serve

Express.js

javascript
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
  console.log(`Server running on port ${PORT}`);
});

Django

bash
python manage.py runserver 0.0.0.0:8000

Flask

bash
flask run --host=0.0.0.0 --port=5000

Rails

bash
rails server -b 0.0.0.0 -p 3000

Binding Address

Some frameworks bind to 127.0.0.1 by default. InTunnel can still access these, but for full compatibility, bind to 0.0.0.0:

bash
# Node.js example
node server.js --host 0.0.0.0

Port Selection

Common Ports

PortCommon Use
3000React, Next.js, Express
5000Flask, Python
8000Django
8080Vue.js, general dev
4200Angular
5173Vite

Finding Your Port

macOS/Linux:

bash
lsof -i -P | grep LISTEN

Windows (PowerShell):

powershell
netstat -an | findstr LISTEN

Connection Settings

Auto-Reconnect

Both CLI and GUI automatically reconnect on connection loss:

  • Initial retry: 1 second
  • Max backoff: 30 seconds
  • Unlimited retry attempts

Timeout Settings

SettingValue
Connection timeout30 seconds
Idle timeoutNone (persistent)
Request timeout60 seconds

Network Configuration

Firewall Rules

InTunnel needs outbound access to:

  • *.intunnel.cloud port 7000 (tunnel connection)
  • *.intunnel.online port 7000
  • *.intunnel.tech port 7000

Proxy Support

If behind a corporate proxy, you may need to configure it:

bash
export HTTP_PROXY=http://proxy.company.com:8080
export HTTPS_PROXY=http://proxy.company.com:8080
intunnel -token YOUR_TOKEN

WARNING

Some proxies may block WebSocket connections required for tunneling.

Next Steps

Released under the MIT License.