diff --git a/libfwupd/fwupd-client.c b/libfwupd/fwupd-client.c index a7b7feb9e..0a8f2ef05 100644 --- a/libfwupd/fwupd-client.c +++ b/libfwupd/fwupd-client.c @@ -826,6 +826,10 @@ fwupd_client_connect_async(FwupdClient *self, } else { socket_address = g_strdup(socket_filename); } + } else { +#ifdef _WIN32 + socket_address = g_strdup("tcp:host=localhost,port=1341"); +#endif } /* use peer-to-peer only if the env variable is set */ diff --git a/src/fu-main.c b/src/fu-main.c index 4b479b586..654049c36 100644 --- a/src/fu-main.c +++ b/src/fu-main.c @@ -2381,6 +2381,10 @@ main(int argc, char *argv[]) } else { socket_address = g_strdup(socket_filename); } + } else { +#ifdef _WIN32 + socket_address = g_strdup("tcp:host=localhost,port=1341"); +#endif } /* own the object */