I'm trying to set up a virtual machine ( sandbox ) to test a single project. I use VirtualBox and Windows10 for the guest. The network is configured as host only (the default host receives the address 192.168.56.1, the built-in dhcp VirtualBox server is 192.168.56.100 and the guest is 192.168.56.101)

I need the programs running in the guest system to consider that they have access to the Internet. For verification, they use the standard method InternetGetConnectedState() from wininet.dll .

Now InternetGetConnectedState() returns FALSE (and lpdwFlags = 0x10 ).

What do I need to change in the configuration of my sandbox so that InternetGetConnectedState() returns TRUE ? I can run any additional services on the host or other virtual machines - such as DNS or web server. I have already tried to emulate NCSI - but to no avail. I also tried to analyze all traffic on the VirtualBox virtual interface using wireshark - but I could not find the relevant requests.

  • if it is written to the related function on the microsoft website: even if the function returned false, then it returns the connection parameters to the second parameter. then you need to analyze them ... msdn.microsoft.com/ru-ru/library/windows/desktop/… - perfect
  • In the case of FALSE , there is nothing interesting in the flags - all zeros except for the RAS flag, which is set by default. - Pioneer
  • and the Internet is at least there on the guest OS? Through the browser goes? - perfect
  • The answer to your question will be: you need the Internet to go to the guest OS via a network card or modem. For verification, create a BRIDGE connection. You can read about connections here: rus-linux.net/MyLDP/vm/VirtualBox-networking.html - perfect
  • I hoped that I clearly explained that there is no Internet in the guest system. If he was, there would be no question. My question is how in the absence of the Internet to satisfy all the checks and force the function to return the desired result. - Pioneer

0