brian@natinst.com (Brian H. Powell) (11/06/90)
I've got a program that calls XOpenDisplay(NULL), and when under Open- Windows 2.0 on the same machine, fails with: Xlib: connection to ":0.0" refused by server Xlib: Client is not authorized to connect to server and on the console: XNeWS Network security violation Rejected connection from: balstrode (balstrode is the name of my machine, DISPLAY is ":0".) My application is not OW-specific, and I've compiled with the X11R4 libraries and with the OW libraries with the same result. xauth returns: balstrode.natinst.com:0 MIT-MAGIC-COOKIE-1 5fac750a7b98f1d657442d62f3b029ae balstrode/unix:0 MIT-MAGIC-COOKIE-1 5fac750a7b98f1d657442d62f3b029ae I know I can subvert this in a variety of ways, including starting openwin with "-noauth", or by doing "xhost balstrode", but I'd rather figure out what my program should be doing to authenticate itself to the server. I've looked at other programs that seem to have no problems working from my machine, and I don't see anything they're doing that's different. I'll keep looking, though. Please mail me your responses. I'll summarize if there's interest. Thanks in advance. Brian H. Powell, M/S 56-14 National Instruments Corp. brian@natinst.com 6504 Bridge Point Parkway uunet!cs.utexas.edu!natinst!brian Austin, Texas 78730-5039 AppleLink:NATINST (512) 338-9119