Thanks for your bug report and the link. I haven't seen this reported when compiling in Visual Studio 2017/2022, however I have gone ahead and switched out the use of gethostname() to the method recommended in the link.