Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cmcl2!yale!galvin-peter From: galvin-peter@cs.yale.edu Newsgroups: comp.windows.x Subject: Re: problems connecting to a remote server Message-ID: <61315@yale-celray.yale.UUCP> Date: 22 May 89 14:31:08 GMT References: <8905181352.AA02484@godiva.goldhill.com> Sender: root@yale.UUCP Reply-To: galvin-peter@CS.YALE.EDU (Peter Baer Galvin) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 26 We put the following change into lib/X/XConnDis.c to solve this problem. Unfortunately we then had to relink all of our clients for it to take effect. Alternately we found we could specify the host number in the DISPLAY variable rather than the hostname and all the programs would run correctly. diff -r1.1 XConnDis.c 192c192,197 < hostinetaddr = inet_addr (displaybuf); --- > /* Yale - HML - don't depend on this to fail with -1 if not a host number */ > if ( ( *displaybuf >= '0') && (*displaybuf <= '9' ) ) > hostinetaddr = inet_addr (displaybuf); > else > hostinetaddr = -1; > --Peter ------------------------------------------ -------------------------------- Peter Baer Galvin (203)432-1254 Senior Systems Programmer, Yale Univ. C.S. galvin-peter@cs.yale.edu 51 Prospect St, P.O.Box 2158, Yale Station ucbvax!decvax!yale!galvin-peter New Haven, Ct 06457 galvin-peter@yalecs.bitnet