Results 25 comments of Yusup

> I'm not asking you to use a fixed IP address. I'm asking whether the physical interface in use changes between places. For example, when you switch to a mobile...

> No, that's not what I meant. Your current approach is to discover the default physical interface and add a route to the swgp-go server address via the interface's gateway....

Actually I tried this, it threw routing errors (could not route to the proxy server). It did not work. https://github.com/lsgrep/swgp-go/tree/macos-routes2

I also tried that as well, it also did not work.

I also could not wrap my head around the networking, without the route how networking interface could send the packet out? Sorry this might be a dumb question

``` Dec 23 21:49:30.393 WRN Failed to write swgpPacket to proxyConn client=client-mac listenAddress=[::]:23456 clientAddress=[::ffff:127.0.0.1]:51820 proxyConnListenAddress=192.168.1.4:60100 pr oxyAddress=PROXY_SERVER:20221 swgpPacketLength=1229 segmentSize=1229 err="write udp4 192.168.1.4:60100->PROXY_SERVER:20221: sendmsg: no route to host" ```

@database64128, Awesome, happy to, will try this later today

``` yAddress=172.237.20.56:20221 swgpPacketLength=734 segmentSize=734 err="write udp4 0.0.0.0:50972->server_ip:20221: sendmsg: network is unreachable" ``` It did't work

``` Aug 12 20:04:21.924 INF swgp-go version=1.8.0 Aug 12 20:04:21.925 INF Started service client=client-mac listenAddress=[::]:23456 proxyAddress=SERVER_IP:20221 wgTunnelMTU=1328 maxUDPGSOSegments=1 udpGRO=false Aug 12 20:04:21.925 DBG Discovered default route rtmType=4 rtmIndex=15 rtmPid=0 ifaAddr=192.168.1.5...

Wireguard: ``` Endpoint = 0.0.0.0:23456 AllowedIPs = 0.0.0.0/0, ::/0 ``` before activating the proxy: ``` Routing tables Internet: Destination Gateway RT_IFA Flags Refs Use Mtu Netif Expire default 192.168.1.1 192.168.1.5...