_X11TransSocketINETConnect: Can't get address for localhost
egs_install_Linux_self.exe: cannot connect to X server localhost:11.0
I checked the X11 forward setting of sshd server and client and both are correct.
cat /etc/ssh/sshd_config | grep X11Forward
set | grep DISPLAY
It seems from the error message the program has difficulty resolving the address localhost therefore I also checked /etc/hosts file and ping localhost also works fine.
cat /etc/hosts | grep localhost
127.0.0.1 localhost.localdomain localhost
Now the problem seems to be that the program to be installed doesn't understand the DISPLAY env set as localhost:11.0. Therefore I ran the following after I sshed to the host
and the program now works