TIP: Unable to initialize gtk, is DISPLAY set properly?

In addition to some common methods provided online, another possible reason for using xming is that xming rejects the forwarding request of the host. Instead, add the host name to the configuration file x0.hosts for xming :

localhost
10.1.241.70

localhost is the default.
x0.hosts and xming.exe are in the same directory.

Read More: