Skip to content
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

docker-for-win: firewall settings / no X window appears #108

Closed
eine opened this issue Jan 24, 2019 · 5 comments
Closed

docker-for-win: firewall settings / no X window appears #108

eine opened this issue Jan 24, 2019 · 5 comments

Comments

@eine
Copy link
Contributor

eine commented Jan 24, 2019

Coming from #87 (comment)

I tried the following:

  • Allow VcXsrv windows xserver in Private and Public networks.
  • Start vcxsrv with xlaunch: Multiple windows, Display number 0, Start no client, Clipboard, Disable access control.
  • winpty docker run -it -e DISPLAY=10.0.75.1:0.0 alpine_term xterm works.
  • Stop vcxsrv.
  • Allow VcXsrv in Private networks only.
  • Start vxcsrv again with xlaunch.
  • winpty docker run -it -e DISPLAY=10.0.75.1:0.0 alpine_term xterm does not work.

However, x11docker does not work with any of them.

Last, I disabled the firewall everywhere (Domain network, Private network and Public network). Now x11docker works.

So, it is strange that this problem did not happen earlier. Although it might sound strange, I think that this might have something to do with changing from wireless to ethernet recently. I did change nothing more these last days.

Will have to investige further.

@mviereck
Copy link
Owner

Allow VcXsrv windows xserver in Private and Public networks.
Start vcxsrv with xlaunch: Multiple windows, Display number 0, Start no client, Clipboard, Disable access control.
winpty docker run -it -e DISPLAY=10.0.75.1:0.0 alpine_term xterm works.

I do not see why x11docker would not work where any sort of docker run -it -e DISPLAY works.
For more similarity you could add --no-auth --clipboard --gpu and even --display=0. But I would not expect a difference due to this settings.

I think that this might have something to do with changing from wireless to ethernet recently. I did change nothing more these last days.

Maybe a regular Windows update that changed something, too?

@eine
Copy link
Contributor Author

eine commented Jan 25, 2019

Well, I enabled the firewall again (Domain network, Private network and Public network), and it now works. vcxsrv must be enabled for private and public networks, but now x11docker behaves as well as docker run -it -e DISPLAY.

Maybe a regular Windows update that changed something, too?

Might be.

I'm closing this, because I don't know what did break or fix it.

@eine eine closed this as completed Jan 25, 2019
@mviereck mviereck added the bug label Jan 25, 2019
@mviereck mviereck changed the title [docker-for-win] Firewall settings [docker-for-win] Firewall settings / no X window appears Jan 25, 2019
@mviereck
Copy link
Owner

Thank you for reporting and investigation!
I have added a note about this in README.md and a message in x11docker.
I will keep this ticket open for those who might stumble over it, too.

@mviereck mviereck reopened this Jan 25, 2019
@eine eine changed the title [docker-for-win] Firewall settings / no X window appears docker-for-win: Firewall settings / no X window appears Feb 2, 2019
@eine eine changed the title docker-for-win: Firewall settings / no X window appears docker-for-win: firewall settings / no X window appears Feb 2, 2019
@eine
Copy link
Contributor Author

eine commented Feb 2, 2019

Today I found the same issue when using --xwin in Cygwin (#120). I had to set the firewall to allow xwin in both public and private networks.

x11docker_winfirewall

@mviereck
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants