Remote access to OpenShift Local (CRC) running on Win11

Latest response

Hi

I've got CRC running on Windows 11 and I would like to connect there from a RHELl9 VM.

  1. CRC listening on 127.0.0.1:6443

  2. Port forwarding rule created on Win machine to fwd connections on 192.168.1.156 (local intf) to 127.0.0.1:

$ netsh interface portproxy show v4tov4

Listen on ipv4: Connect to ipv4:

Address Port Address Port


192.168.1.156 9000 127.0.0.1 6443

  1. Added rule in firewall to allow connections to port 9000

  2. From the VM:

[test@workstation ~]$ telnet 192.168.1.156 9000
Trying 192.168.1.156...
Connected to 192.168.1.156.
Escape character is '^]'.
Connection closed by foreign host.

[test@workstation ~]$ oc login -u developer -p developer https://192.168.1.156:9000
The server is using a certificate that does not match its hostname: x509: certificate is valid for 10.217.4.1, not 192.168.1.156
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y

Error from server (InternalError): Internal error occurred: unexpected response: 412

Any idea on how I can fix this and be able to connect from my VM towards CRC?

thanks,
André

Responses