Network Configuration
Manage DFX network configurations - View and edit networks.json, configure custom networks, and optimize development workflows
The Network page in the DFX Dashboard provides comprehensive network management capabilities through two powerful interfaces: a user-friendly Network Manager and a direct JSON Editor. This dual approach allows you to manage your global networks.json
file with both guided forms and direct configuration editing.
Overview
The Network page is organized into two main tabs designed for comprehensive network management:
Network Manager
Table-based interface for adding, editing, and managing networks
JSON Editor
Direct JSON editor for advanced configuration and bulk editing
The Network page manages your global networks.json
file, which defines networks available to all DFX projects on your system. Changes made here affect all projects using these network configurations.
Network Manager Interface
The Network Manager provides a table-based interface for managing your network configurations with the following features:
Table Structure
The network table displays the following information:
Network Management Actions
Add Network
Create new network configurations with guided forms
Edit Network
Modify existing network settings through type-specific forms
Delete Network
Remove networks with confirmation dialog for safety
Adding Networks
The Add Network feature provides guided forms for different network types:
Network Types
Local Network Configuration
Local networks are used for development and testing on your local machine:
Configuration Options:
- Network Name: Unique identifier for the local network
- Bind Address: IP address and port (e.g., “127.0.0.1:4943”)
- Subnet Type: Application, system, or verified application
- Type: Typically “ephemeral” for local development
Use Cases:
- Primary development environment
- Feature-specific testing networks
- Isolated development sandboxes
- Team collaboration environments
Local Network Configuration
Local networks are used for development and testing on your local machine:
Configuration Options:
- Network Name: Unique identifier for the local network
- Bind Address: IP address and port (e.g., “127.0.0.1:4943”)
- Subnet Type: Application, system, or verified application
- Type: Typically “ephemeral” for local development
Use Cases:
- Primary development environment
- Feature-specific testing networks
- Isolated development sandboxes
- Team collaboration environments
Internet Computer Network Configuration
IC networks connect to the Internet Computer mainnet or testnets:
Configuration Options:
- Network Name: Descriptive name for the IC network
- Providers: Array of IC provider URLs (e.g., [“https://ic0.app”])
- Type: Typically “persistent” for IC networks
Use Cases:
- Production deployments
- Mainnet testing
- Testnet development
- Multi-provider redundancy
Custom Network Configuration
Custom networks allow for specialized configurations:
Configuration Options:
- Network Name: Custom identifier
- Flexible Configuration: Any valid network configuration
- Advanced Settings: Custom providers, binding, and replica settings
Use Cases:
- Private IC nodes
- Custom development environments
- Specialized testing scenarios
- Enterprise configurations
Editing Networks
The Edit Network feature allows you to modify existing network configurations:
Editing Process
Select Network
Click the Edit button for the network you want to modify
Modify Settings
Update the network configuration using the appropriate form
Save Changes
Apply changes to update the networks.json file
Verification
Verify the changes are reflected in the network table
Edit Features
Form Validation
Real-time validation ensures configuration correctness
Type Detection
Automatically detects network type for appropriate form display
Conflict Prevention
Prevents duplicate names and conflicting configurations
Auto-Save
Changes are automatically saved to the networks.json file
JSON Editor Interface
The JSON Editor provides direct access to the networks.json file with advanced editing capabilities:
Editor Features
Syntax Highlighting
JSON syntax highlighting for better readability
Real-time Validation
Immediate validation of JSON syntax and structure
Auto-formatting
Automatic code formatting and indentation
Error Detection
Clear error messages for invalid configurations
Theme Support
Light and dark theme support matching dashboard theme
File Path Display
Shows the exact location of the networks.json file
Editor Controls
Advanced Editing
Bulk Configuration Management
The JSON editor excels at bulk operations:
- Multiple Networks: Add or modify multiple networks simultaneously
- Copy/Paste: Copy configurations between environments
- Template Application: Apply configuration templates
- Batch Updates: Update common settings across networks
Bulk Configuration Management
The JSON editor excels at bulk operations:
- Multiple Networks: Add or modify multiple networks simultaneously
- Copy/Paste: Copy configurations between environments
- Template Application: Apply configuration templates
- Batch Updates: Update common settings across networks
Advanced Network Settings
Direct JSON editing enables complex configurations:
- Custom Properties: Add non-standard configuration options
- Advanced Replica Settings: Configure detailed replica parameters
- Provider Arrays: Manage multiple provider endpoints
- Nested Configurations: Handle complex nested settings
Configuration Portability
JSON editor facilitates configuration sharing:
- Export Configurations: Copy entire configurations for sharing
- Import Settings: Paste configurations from other environments
- Backup Creation: Create backups before major changes
- Team Synchronization: Share configurations across team members
Understanding networks.json
The networks.json
file is a crucial configuration file that defines the networks available for your DFX projects:
Default Configuration
Configuration Components
Best Practices
Troubleshooting
Additional Resources
DFX Network Configuration
Complete guide to understanding DFX network configuration
IC Interface Specification
Advanced network configuration options and specifications
Mainnet Deployment
Best practices for network management in production
Troubleshooting Guide
Comprehensive troubleshooting for network issues
Ready to explore application logs and monitoring? Continue to the Logs page to learn about log management, monitoring, and debugging capabilities.