public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Stone, Timothy M" <tstone@ida.org>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: How to use X-Server on VM with multiple client displays?
Date: Tue, 22 Aug 2023 17:41:50 +0000	[thread overview]
Message-ID: <8f780780d6ff49dba93223855a778b6c@ida.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1566 bytes --]


Hello,

I hope I'm using the right list!

I have an X application that uses the cygwin X Server XWin.  It works fine on Windows:

  *   When I launch the application, XWin launches, then the X app raises it's window.

When I install this application (and cygwin and XWin) on a virtual machine, I have a DISPLAY issue:

  *   If I log into the virtual machine from <machine1>, I can launch and run the app just fine.
  *   However, if I then try to log into the virtual machine from another computer and launch the app...the app launches on the first machine's display...so I have 2 copies of it running on that display now.
  *   Typically, I'd set DISPLAY=<machine1>:0.0 for the first machine, and DISPLAY=<machine2>:0.0 for the second machine
     *   The problem is, the virtual machine is the only machine here, it only has 1 IP address
     *   I don't know how to set multiple DISPLAY when using the same virtual machine with the same IP address from 2 different machines.
     *   I have tried setting the DISPLAY to the IP addresses of the client machines, this does not work (unable to open display).
  *   I have also tried setting DISPLAY=localhost:0.0 for one machine and DISPLAY=localhost:0.1 for the other machine...this also does not work
     *   XWin is unable to open display localhost:0.1

Any help greatly appreciated!

I'm sure it must be possible to launch the X app on the virtual machine from different clients and have the display on their respective displays?  I just can't see how to set the display.

thanks



             reply	other threads:[~2023-08-22 17:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22 17:41 Stone, Timothy M [this message]
2023-08-23 20:15 ` Jon Turney
2023-08-23 20:50   ` [EXT] " Stone, Timothy M

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8f780780d6ff49dba93223855a778b6c@ida.org \
    --to=tstone@ida.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).