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

Editing Networks

The Edit Network feature allows you to modify existing network configurations:

Editing Process

1

Select Network

Click the Edit button for the network you want to modify

2

Modify Settings

Update the network configuration using the appropriate form

3

Save Changes

Apply changes to update the networks.json file

4

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

Understanding networks.json

The networks.json file is a crucial configuration file that defines the networks available for your DFX projects:

Default Configuration

{
  "local": {
    "bind": "127.0.0.1:4943",
    "type": "ephemeral",
    "replica": {
      "subnet_type": "application"
    }
  }
}

Configuration Components

Best Practices

Troubleshooting

Additional Resources

Ready to explore application logs and monitoring? Continue to the Logs page to learn about log management, monitoring, and debugging capabilities.