Invoke-WebRequest timeout if NIC 1 disconnected

S.Spieker

I have a Windows PC with three network interfaces. One is a UMTS modem and the two others are local networks and one network has connection to the internet.

Invoke-WebRequest http://192.168.1.118/File1.xml

As long as I have an internet connection, either via UMTS or via the second network the Invoke-WebRequest works. But if I only have a connection to one local network, I get a timeout, although pinging the address is still working.

Where might be the problem? Or is it possible to define the network interface where the webrequest should try to get data?

Loïc MICHEL

Do you have a proxy configured on this box ?

[System.Net.WebRequest]::GetSystemWebproxy()

You can try to disable it, so you should have a direct acces to your intranet.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Powershell Invoke-WebRequest returns array of objects but processes as if there is only 1

From Dev

Linux - timeout on disconnected send

From Dev

Invoke webrequest -body containing variables

From Java

Invoke-WebRequest, POST with parameters

From Dev

Hide progress of Invoke-WebRequest

From Dev

Invoke-WebRequest SSL fails?

From Dev

Invoke a WebRequest using Powershell Script

From Dev

Invoke-WebRequest Proxy Bypass

From Dev

Powershell, invoke-webrequest...and Zabbix

From Dev

Convert Curl to Invoke-WebRequest

From Dev

.Net WebRequest Timeout versus TCP Timeout

From Dev

Invoke a command/script disconnected from the controlling terminal?

From Dev

HDMI1 is disconnected

From Dev

Invoke-WebRequest with dynamic host fails

From Dev

Invoke-WebRequest not working in Azure Automation

From Dev

Invoke-WebRequest: Error fetching Ajax content

From Dev

How to perform a HTTPS request with Invoke-WebRequest?

From Dev

How to escape an Invoke-Webrequest in Powershell

From Dev

Using wildcards to download a file with Invoke-WebRequest

From Dev

Invoke-WebRequest login to web site

From Dev

Invoke-WebRequest Canvas LMS API pagination

From Dev

Invoke-WebRequest working after server is unreachable

From Dev

Invoke-WebRequest not downloading proper exe file

From Dev

PowerShell Invoke-Webrequest not compatible with site?

From Dev

How to Post Request with Invoke-WebRequest

From Dev

XML Parsing from a response of Invoke-WebRequest

From Dev

Invoke-WebRequest accept body from stdin

From Dev

What is the difference between Invoke-WebRequest and Invoke-RestMethod?

From Dev

Windows 10 Powershell Invoke-WebRequest "Windows Security Warning "

Related Related

HotTag

Archive