Xwindows by default use ports in the range 6000-6010. It may be that Win7 has those ports blocked in its firewall and you need to open them.
However an even safer way to do it is initiate an ssh session to the server from Windows using PuTTY with ssh tunneling. (Putty Configuration -->SSH -->X11 select "Enable X11 Forwarding".
When you open the PuTTY session to the remote server it will set your DISPLAY variable to a special one that tunnels back through the existing connection. (Make sure you don't override DISPLAY variable in /etc/profile, /etc/bashrc, .profile or .bashrc etc...). It also creates a .Xauthority in your home directory. Using that you can open X sessions back to your server (assuming you have your X server ReflectionX on).
If you change users after login (e.g. "su -" to become root) you can still use the same tunnel by setting DISPLAY to what it was before the su and setting XAUTHORITY variable equal to the .Xauthority file in the original user's home directory (e.g. export XAUTHORITY=/home/myuser/.Xauthority). For user's other than root you'd need to set permission on .Xauthority to allow that. (This permission change should be done sparingly and for short sessions as it opens a security hole into your Windows box - anyone that can access that .Xauthority file has a tunnel back to you.)
|