Windows how to compile: Step-by-step

Tested on Windows Server 2019 and Windows 10.

go build


Run Cmd.exe:

Peernet Cmd 0.1
Please enter a command:
help               Show this help
net list           Lists all network adapters and their IPs
status             Get current status
chat               Send text to all peers
peer list          List current peers
debug key create   Create Public-Private Key pair
debug key self     List current Public-Private Key pair


  • Here is how to cross-compile from Windows to Linux:

    set GOARCH=amd64
    set GOOS=linux
    go build

    On Linux make the executable executable:

    chmod +x ./Peernet
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion