Skip to content

[BUG] Connect-PnPOnline behind firewall error: "Host not reachable" version 2.2.0 and above #3908

@ChristopherFoerster

Description

@ChristopherFoerster

Reporting an Issue or Missing Feature

Issue confirmed by several users. See #3151
Related to Release Release 2.2.0 · pnp/powershell · GitHub

  • Improved Connect-PnPOnline cmdlet to handle ping on the destination server to check if it exists. PR and #3154

Expected behavior

Scripts asks for credentials

Actual behavior

Error by command: Host not reachable

Steps to reproduce behavior

Simply run command Connect-PnPOnline -Url "contoso.sharepoint.com" behind a firewall. Proxy set.
Command is working well in 2.1.1 and below.

What is the version of the Cmdlet module you are running?

From 2.2.0 to latest 2.4.44 nightly

Which operating system/environment are you running PnP PowerShell on?

  • [ X] Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • [X ] Other : official latest Docker image mcr.microsoft.com/powershell

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions