Once you've logged in to the Unix machine you need to execute:
export DISPLAY=x.x.x.x:0
(case matters). I suspect that the PC will allow connections from anywhere and you would not to use xhost on the PC.
Main Topics
Browse All TopicsI just installed an Xwindows envirionment on my XP machine. I telnet'ed to another unix machine and want to run a gui program while exporting the display to my pc. I've done this before, probably about 3 years ago. I remember there was some command to allow exporting. I think it had a "+' and something else. The next command was:
export display=xxx.xx.xx.xx:0.
I tried the export command and got the following error:
can't connect to x11 window server using ':0.0' as the value of the display variable.
How do I export the display?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
What matters is the IP that the Unix machine sees the connection from. Try 'who' or maybe' w' to see where you are connecting from. Note that if your PC is behind a NAT'ing router a simple telnet session won't work since the Unix box will need to open a connection back to your PC. In that case you need to use a VPN connection or ssh, which supports X11 forwarding via the encrypted connection.
> I just installed an Xwindows envirionment
What Xwindow software did you install on your XP?
For Hummingbord Exceed, you need to do (for xstart)
/usr/openwin/bin/xterm -display @d
(xterm path may vary in different Unix, do "which xterm" to check the path of xterm)
to open an Xwindow terminal on your XP.
Then you can bring any unix GUI to your PC.
Wesly
Does the UNIX environment have SSH installed ? (Telnet just isn't a good idea - even on closed supposedly "secure" networks.)
You could try X11 tunneling through SSH. Since SSH makes the X11 session "appear" to be local to the XP X11 environment, your xauth issue should disappear. This of course assumes SSH is installed and X11 forwarding is enabled in sshd.conf.
What's nice is when you request X11 forwarding (and its enabled), SSH makes sure your X display variable is setup correctly.
Business Accounts
Answer for Membership
by: jc31415Posted on 2004-12-12 at 14:05:05ID: 12805331
I tried:
xhost + -- to allow connections by any host
and got error:
unable to open display ""