diff --git a/components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/services/ControllerStatusService.kt b/components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/services/ControllerStatusService.kt index 3a5fac45d24662..5aadd6f5680b48 100644 --- a/components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/services/ControllerStatusService.kt +++ b/components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/services/ControllerStatusService.kt @@ -34,7 +34,7 @@ object ControllerStatusService { retry(3) { val port = BuiltInServerManager.getInstance().waitForStart().port val httpRequest = HttpRequest.newBuilder() - .uri(URI.create("http://localhost:$port/codeWithMe/unattendedHostStatus?token=$cwmToken")) + .uri(URI.create("http://127.0.0.1:$port/codeWithMe/unattendedHostStatus?token=$cwmToken")) .header("Content-Type", "application/json") .GET() .build() diff --git a/components/ide/jetbrains/launcher/main.go b/components/ide/jetbrains/launcher/main.go index cd6074558badc5..6711dedcff89af 100644 --- a/components/ide/jetbrains/launcher/main.go +++ b/components/ide/jetbrains/launcher/main.go @@ -432,7 +432,7 @@ func resolveGatewayLink(backendPort string, wsInfo *supervisor.WorkspaceInfoResp func resolveJsonLink(backendPort string) (string, error) { var ( - hostStatusUrl = "http://localhost:" + backendPort + "/codeWithMe/unattendedHostStatus?token=gitpod" + hostStatusUrl = "http://127.0.0.1:" + backendPort + "/codeWithMe/unattendedHostStatus?token=gitpod" client = http.Client{Timeout: 1 * time.Second} ) resp, err := client.Get(hostStatusUrl) @@ -460,7 +460,7 @@ func resolveJsonLink(backendPort string) (string, error) { func resolveJsonLink2(launchCtx *LaunchContext, backendPort string) (*JoinLinkResponse, error) { var ( - hostStatusUrl = "http://localhost:" + backendPort + "/codeWithMe/unattendedHostStatus?token=gitpod" + hostStatusUrl = "http://127.0.0.1:" + backendPort + "/codeWithMe/unattendedHostStatus?token=gitpod" client = http.Client{Timeout: 1 * time.Second} ) resp, err := client.Get(hostStatusUrl) @@ -492,7 +492,7 @@ func resolveJsonLink2(launchCtx *LaunchContext, backendPort string) (*JoinLinkRe func terminateIDE(backendPort string) error { var ( - hostStatusUrl = "http://localhost:" + backendPort + "/codeWithMe/unattendedHostStatus?token=gitpod&exit=true" + hostStatusUrl = "http://127.0.0.1:" + backendPort + "/codeWithMe/unattendedHostStatus?token=gitpod&exit=true" client = http.Client{Timeout: 10 * time.Second} ) resp, err := client.Get(hostStatusUrl)