Caqil / wireguard_flutter

wireguard_flutter
https://pub.dev/packages/wireguard_flutter
MIT License
20 stars 20 forks source link

Windows vpn is not connecting #23

Open aakashch0179 opened 3 months ago

aakashch0179 commented 3 months ago

I try to debug in windows and its successfully debug then i press connect button its throw this error please help me.

Starting service with command line: D:\Codecaneone Projects\wireguard\build\windows\x64\runner\Debug\wireguard_svc.exe -service -config-file="C:\Users\cheta\AppData\Local\Temp\wg_12FA.tmp.conf"
flutter: status is changed VpnStage.preparing
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: FormatException: Missing extension byte (at offset 1)
#0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1748:7)
#1      Utf8Decoder.convert (dart:convert/utf.dart:356:42)
#2      StandardMessageCodec.readValueOfType (package:flutter/src/services/message_codecs.dart:502:29)
#3      StandardMessageCodec.readValue (package:flutter/src/services/message_codecs.dart:477:12)
#4      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:646:44)
#5      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:322:18)
Caqil commented 3 months ago

did you add wireguard conf?

aakashch0179 commented 3 months ago

did you add wireguard conf?

yes i add conf

Caqil commented 3 months ago

did you add wireguard conf?

yes i add conf

You need run as administrator for vcode.

aakashch0179 commented 3 months ago

did you add wireguard conf?

yes i add conf

You need run as administrator for vcode.

yes its connecting but not changing my ip address

evangelme commented 3 months ago

i had the same problem i do not why but i changed the conf name name = 'my_wg_vpn' to something else and it worked do the same it should work if it dose not give me the conf file and i check it for you

aakashch0179 commented 3 months ago

i had the same problem i do not why but i changed the conf name name = 'my_wg_vpn' to something else and it worked do the same it should work if it dose not give me the conf file and i check it for you

Sir after connecting your windows ip is changing or not, I connected successfully in windows and ip is not changeing