Hello,
This is another case of Flair not connecting to the Display. Error message is:
“Couldn’t connect to display “172.19.64.1;0”
This is run with Ubuntu 20.04 LTS in WSL2 with Xming (using Xlaunch with “no access control” checked as required).
Some of the solutions to this as recommended from previous posts on the forum were tried.
- Firewall looked at to be sure it will let Xming through. ( is checked for both private and public)
- Using sudo nano /etc/profile.d/wsl.sh
The file wsl.sh was edited to contain
DISPLAY=“grep nameserver /etc/resolv.conf | sed 's/nameserver //'
:0”
The file was saved and the editor was exited. Then Ubuntu was exited and restarted with no error - Echo $DISPLAY gives 172.19.64.1:0 while the Xming log reads
XdmcpRegisterConnection: newAddress 172.19.64.1 - gfortran --version gives GNU Fortran (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
I have run out of ideas and any help would be greatly appreciated.
Thank you,