Help us shape the future of Go! Take the 2026 Go Developer Survey

skynet

command
v1.3.104 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

README

SkyNet Server

SkyNet server exposes local TCP ports over the Skywire network, enabling peer-to-peer port forwarding without transiting DMSG servers.

Overview

The SkyNet server is a visor-native application that:

  • Exposes local TCP ports to other Skywire visors
  • Supports whitelist-based access control
  • Works over STCPR, SUDPH, or DMSG transports
  • Runs on the built-in visor forwarding port (57)

Usage

The SkyNet server is controlled via skywire cli skynet srv:

Start a Server
# Expose local port 8080
skywire cli skynet srv start --ports 8080

# With custom name
skywire cli skynet srv start --ports 3000 --name my-server

# With whitelist (restrict to specific public keys)
skywire cli skynet srv start --ports 8080 --whitelist 02abc...,03def...
Check Status
skywire cli skynet srv status
Stop a Server
# By instance name (default: skynet-<first-port>)
skywire cli skynet srv stop --name skynet-8080

Configuration

SkyNet servers can be configured in skywire-config.json under the apps section:

{
  "name": "skynet",
  "args": ["--ports", "8080"],
  "auto_start": false,
  "port": 90
}

How It Works

  1. The server registers with the visor's built-in forwarding service on port 57
  2. Remote clients connect via the skynet-client application
  3. Traffic is forwarded between the remote client and the local TCP port
  4. All communication is encrypted via Skywire's transport layer

See Also

Documentation

Overview

Package main cmd/apps/skynet/skynet.go c4-app-skynet

Directories

Path Synopsis
Package commands cmd/apps/skynet/commands/skynet.go c4-app-skynet
Package commands cmd/apps/skynet/commands/skynet.go c4-app-skynet

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL