-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect to Windows server from Linux client #241
Comments
Hi @roland65
As explained in the error, this is not a login error, but a filtering problem. |
Hi, thanks for the answer. |
@roland65 |
I can ping the Windows server. I also tried to open and RDP session on the Windows server, from a Linux xfreerdp client and it works. On the Windows server, do I need some other dependency than ffmpeg? |
I tried to do the reverse, that is connecting to a Linux sanzu server using a sanzu client from the Windows VM. On the Linux server side (Ubuntu 22.04) I did: Xvfb :100 -screen 0 1920x1080x24 On the Windows client, I did: cd c:\ffmpeg\bin and I received the following error: c:\ffmpeg\bin>[2023-11-22T13:24:19.080439800Z ERROR sanzu_client] Client error On the Linux server, I did: netstat -na | grep :1122 and I got: tcp 0 0 127.0.0.1:1122 0.0.0.0:* LISTEN so it seems the sanzu server is indeed listening, but there is some communication problem... Any idea? |
I also tried with a VM in VirtualBox and host only networking: same issue... |
The default listening address is 127.0.0.1 (so only local listening)
Does it solve the problem? |
Hi serpilliere, thanks for the tip, now I can connect! However, in the Windows server I get tons of errors like this: [2023-11-27T08:43:57.257719400Z ERROR sanzu::server_windows] acquirenextframe -2005270489 and in the client I get one error: [2023-11-27T08:45:06.751261742Z ERROR sanzu_client] Client error And the rendering is slow... Any idea? |
Hi @roland65 In your case, you didn't provide specific encoders on the command line, so sanzu_server uses libx264 by default for encoding. This encoding will be done on the cpu in the virtual machine which may be slow. One solution to this is doing the following steps (if it's acceptable from your point of view):
This has the advantage to compress video on the host, so if you don't trust your VM, this is interesting as the video stream doesn't come from the guest but from the host in this case. If you want to try this, the steps are explained in an old PR here: |
Another point: Can you confirm you compiled using "--release" ? |
In fact, I used the release you provide. I'll test your solution but for now I have a question: I tried to launch the server in seamless mode, like this (in Windows): sanzu_server -x --config sanzu.toml --address 192.128.xxx.yyy but on the client side (Linux) I didn't find a way to launch an application. How do you do that? |
Hi @roland65 |
Note that for now, the sanzu windows server is not really optimized regarding to linux one. |
As the connection problem is resolved, I am closing the issue |
Hi,
I installed sanzu server in Windows 10 20H2 (running in a VM, Windows Defender disabled) using the command:
sanzu_server --config sanzu.toml
(the file sanzu.toml I used is the one you give).
Then in Linux (Ubuntu 22.04 with the package sanzu-client_0.1.4_amd64.deb installed) I issued the command:
sanzu_client 192.168.122.215 1122
and got the errors:
[2023-11-16T15:01:48.929045572Z ERROR sanzu_client] Client error
[2023-11-16T15:01:48.929060976Z ERROR sanzu_client] - due to Error in tcp server connection "192.168.122.215:1122"
[2023-11-16T15:01:48.929065707Z ERROR sanzu_client] - due to Connection refused (os error 111)
What am I doing wrong? Is there some login/password to pass to the server?
The text was updated successfully, but these errors were encountered: