I have a Windows PC with three network interfaces. One of them is a UMTS modem, and the other two are local area networks, and one network has an Internet connection.
Invoke-WebRequest http://192.168.1.118/File1.xml
So far, I have an Internet connection, either through UMTS or through a second network, Invoke-WebRequest is working. But if I only have a connection to one local network, I get a timeout, although the ping address still works.
Where could the problem be? Or can you define a network interface where a web request should try to retrieve data?
source
share