xming error : "client 4 rejected from IP"

If you are getting "client 4 rejected from IP xming" on the logs of Xming, do the following :

The logs shows the below error :

AUDIT: Sun Feb 02 11:56:00 2014: 4324 G:\Program_Files_(x86)\Xming\Xming.exe: client 4 rejected from IP

Find the file X0.hosts in the installed folder of Xming (This, to me is on folder "G:\Program_Files_(x86)\Xming"). Open this file. The content of this file will be localhost

Add the IP of the host you want to connect to

export DISPLAY
Run xhost +
$ xhost +
access control disabled, clients can connect from any host
xhost: must be on local machine to enable or disable access control.