Skip to content

Cannot connect local wireguard server on windows #54

Description

@Remering

Code repo is here https://github.com/[Remering/starresonance_battle_data_statistics](https://github.com/Remering/starresonance_battle_data_statistics).
When i click the switch, console logs are below.

WireGuard interface before configuration: Host {
    listen_port: 0,
    fwmark: None,
    peers: {},
    ..
}
Prepared interface configuration: InterfaceConfiguration { name: "utun3", addresses: [IpAddrMask { ip: 127.0.0.1, cidr: 32 }], port: 12345, peers: [Peer { public_key: 2df223685bdde5fbf6c0ae451f779b4b2cb8d21ffdc9a919e2d8208a2921ef59, preshared_key: None, protocol_version: None, endpoint: None, last_handshake: None, tx_bytes: 0, rx_bytes: 0, persistent_keepalive_interval: None, allowed_ips: [IpAddrMask { ip: 0.0.0.0, cidr: 0 }] }], mtu: None, .. }
WireGuard interface after configuration: Host {
    listen_port: 0,
    fwmark: None,
    peers: {},
    ..
}
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ #0   WireguardClientService.connect (package:starresonance_battle_data_statistics/service/wireguard_service.dart:67:13)
wireguard_service.dart:67
│ #1   _ConnectVpnToggleSwitchState.build.<anonymous closure> (package:starresonance_battle_data_statistics/widget/connect_vpn_switch.dart:47:54)
connect_vpn_switch.dart:47
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 💡 Generated wireguard quick config: 
│ 💡 [Interface]
│ 💡 PrivateKey = Y4i/NTGQGH29Fx5H10hgnHtwwZdomNDEEDDMsDPrdTk=
│ 💡 Address = 127.0.0.1
│ 💡 
│ 💡 [Peer]
│ 💡 PublicKey = LfIjaFvd5fv2wK5FH3ebSyy40h/9yakZ4tggiikh71k=
│ 💡 
│ 💡 AllowedIPs = 0.0.0.0/0
│ 💡 PersistentKeepalive = 0
│ 💡 
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Starting service with command line: D:\WorkPlace\Flutter\starresonance_battle_data_statistics\build\windows\x64\runner\Debug\wireguard_svc.exe -service -config-file="C:\Users\remering\AppData\Local\Temp\wg_A695.tmp.conf"
wireguard_flutter: Trying to delete and recreate the service
wireguard_flutter: Failed to start the service0
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ FormatException: Missing extension byte (at offset 1)
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ #0   _ConnectVpnToggleSwitchState.build.<anonymous closure>.<anonymous closure> (package:starresonance_battle_data_statistics/widget/connect_vpn_switch.dart:54:42)
connect_vpn_switch.dart:54
│ #1   new Future.<anonymous closure> (dart:async/future.dart:260:40)
future.dart:260
│ #2   Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
timer_patch.dart:18
│ #3   _Timer._runTimers (dart:isolate-patch/timer_impl.dart:410:19)
timer_impl.dart:410
│ #4   _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:441:5)
timer_impl.dart:441
│ #5   _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:193:12)
isolate_patch.dart:193
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ ⛔ Error while connect to local wireguard server
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions