ssh - How to determine what ports X is listening on? -


my use case running nx on ssh , local proxy connects remote host via tunneling. because it's tunneled, tell nx connect localhost:port. problem need perform x authentication , if hit local x server accident instead of remote one, authentication error.

how can determine port local x server listening on can avoid when setting tunnel?

my current workaround avoid tunneling local port has application listening on it.

it's screen number + 6000. example, if $display :5 port number 6005


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -