How to set the metric of the network adapter? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- loaded · 2022-04-09 19:26 Hi All, Is it possible to take the metric setting of the TCP connection from automatic to manual and give the value 1? ---------------------------------------------------------------------- dseligo · 2022-04-10 00:09 I can't offer you exact solution, but you can try and see if you can accomplish what you want with 'netsh' command line tool. If you can, there is a chance that you can do the same with Windows API (or in the worst case, you might call 'netsh' from your program). You'll probably need elevated rights to perform that. ---------------------------------------------------------------------- loaded · 2022-04-10 04:56 Thank you very much for your reply dseligo. Yes, your suggestion is quite reasonable. If I can't find a simpler solution, I'll use it.