Winsock error

Winsock Connection refused error; Linux server and Windows client

A client installed our Linux software with lmgrd license manager running on Linux as well. The license manager was up and running and reported that all the features are available.
He was also able to start up our xgdsplot and qckvu3 software on the Linux clients.

Problem

However, upon installing our gdsplot software on a Windows client, he received the following Flexlm error window..

lmgrd is not running: Cannot connect to license server system.
The license server manager (lmgrd) has not been started yet,
the wrong port@host or license file is being used, or the
port or hostname in the license file has been changed
The LM_LICENSE_FILE was set properly and we could also ping the server, yet the problem persisted.

Solution

The user had to open two ports on the Linux side, one for the lmgrd license manager and one for the artwork daemon. The file you need to edit on the Linux side is /etc/sysconfig/iptables and here is the information you need to add to it..

-A INPUT -m state --state NEW -m tcp -p tcp --dport 27006 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 27006 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 35543 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 35543 -j ACCEPT

And then type...

#  /etc/init.d/iptables restart 
In this case, port 27006 was the port used in the SERVER line and the LM_LICENSE_FILE variable.
Port 35543 was used for the artwork daemon.

One last thing was to specifically set the daemon port in the license file.

SERVER blade1500 f04da23e2271 27006
VENDOR artwork /usr/local/flexlm/licenses/ PORT=35543