Hello,
I am creating a wrapper for the Proxmox API to use the VM console. My setup is as follows:
Problem:
Questions:
Any guidance or examples for integrating Proxmox console via noVNC through a local .NET API would be highly appreciated.
Thanks in advance!
I am creating a wrapper for the Proxmox API to use the VM console. My setup is as follows:
- Backend: .NET API hosted locally on the same server as Proxmox (not publicly accessible).
- Frontend: Angular application using the noVNC client to connect to the VM console.
Problem:
- When I call the vncproxy API from my .NET backend, it times out after 10 seconds.
- Within 10 seconds, I fetch the WebSocket URL (format: wss://...) and attempt to connect via noVNC.
- The WebSocket connection fails with 401 Unauthorized.
- Testing via Postman:
- A POST request of vncproxy & Get request websocket returns the port successfully.
- Changing the request to a WebSocket request with wss://... results in 401 Unauthorized.
Questions:
- How should I properly forward or handle Proxmox authentication tokens from my .NET API to the frontend for noVNC?
- Are there recommended ways to use a local-only .NET API as a proxy for WebSocket connections to Proxmox?
- Could the 10-second timeout be related to ticket expiration or the way WebSocket URLs are issued?
Any guidance or examples for integrating Proxmox console via noVNC through a local .NET API would be highly appreciated.
Thanks in advance!