I have experienced this problem where my presentation server 4.0 server can not get a citrix license from the license server.
My presentation server 4.0 is running on windows 2003 and 2000, The license server is running on windows 2003 with IIS installed, There is a firewall inbetween the two servers.
I was getting the following errors in eventvwr
-Metaframe Presentation Server cannot contact the license server
-Metaframe presentation server has entered the grace period. You have *** hours remaining before this server stops accepting connections from client devices
-Error 0 when trying to get a client license, Presentation Server is not or can not enter a grace period.
To troubleshoot this problem try the following
1.) If the presentation server can not contact the license server you have 30 days to fix this problem.
Warning do not install any citrix hotfixes as this will erase the grace period and you presentation server will have to contact the license server before it can accept any new logons. If you think installing a hotfix will fix your problem then only install it on one server in your farm and fully test before thinking of installing it on any other servers.
2.) Open up The Presentation Server Console. Right click on the server which is having the problem, Click on Set Metaframe Edition.
Check that you have licenses installed on the license server for what is selected.
3.) Open up The Presentation Server Console. Right click on the server which is having the problem, Click on properties then license server, take note of what IP/DNS name and port is being used (Befault port is 27000). Now from the presentation server open a command line and type
telnet IP/DNS name port
for example telnet 192.168.0.1 27000
If the above times out then there might be a firewall inbetween. If it does not time out continue on.
Now this really got me scratching my head. There is a citrix document which tells you which ports to open if you are using a firewall. It says for the license server it uses port number 27000. But there is also another port you need to open, you also need to hard code this. To do this log on to your license server and do the following.
-Locate where the license files are kept, default is C:\Program Files\Citrix\Licensing\MyFiles and back them up.
-Stop the license management console for citrix licensing service
-Remove the read only attribute from all of the license files
-Using a text editor open each file. Locate the server line, where it says hostname=%servername% add after which port number you would like to hard code the server to use. The line will then look something like this
SERVER this_host HOSTNAME=server1 27001
I personally have used port 27001 and have opened this port on the firewall.
Well there you are, If you have followed the guide and are still having problems please post in our forums with as much detail as you can