<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hackepedia.org/index.php?action=history&amp;feed=atom&amp;title=FlexLMForwarding</id>
	<title>FlexLMForwarding - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hackepedia.org/index.php?action=history&amp;feed=atom&amp;title=FlexLMForwarding"/>
	<link rel="alternate" type="text/html" href="https://hackepedia.org/index.php?title=FlexLMForwarding&amp;action=history"/>
	<updated>2026-05-08T16:40:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://hackepedia.org/index.php?title=FlexLMForwarding&amp;diff=1981&amp;oldid=prev</id>
		<title>Hawson: FlexLM Port forwarding</title>
		<link rel="alternate" type="text/html" href="https://hackepedia.org/index.php?title=FlexLMForwarding&amp;diff=1981&amp;oldid=prev"/>
		<updated>2005-12-13T03:57:59Z</updated>

		<summary type="html">&lt;p&gt;FlexLM Port forwarding&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Forewarding FlexLM ===&lt;br /&gt;
&lt;br /&gt;
Forwarding FlexLM connections is a hassle, but can be a useful trick if you need to run an application from a remote location.  The difficulty comes from the need for forwarding more than one port a time.&lt;br /&gt;
&lt;br /&gt;
A FlexLM daemon uses two processes, and two ports.  The first daemon is &amp;lt;code&amp;gt;lmgrd&amp;lt;/code&amp;gt;, and acts as a director to the other daemon(s) on the server.  It usually binds to port 27000.  The second daemon is supplied by the vendor, and is specific to whatever application is being licensed.  The port it binds to is also vendor-specific.  For example, Matlab usually uses port 1970.&lt;br /&gt;
&lt;br /&gt;
Both of these ports can be altered in the license.dat file, and both--whatever they are--must be forwarded properly.&lt;br /&gt;
&lt;br /&gt;
=== The Test Setup ===&lt;br /&gt;
&lt;br /&gt;
The test configuration is as follows:&lt;br /&gt;
&lt;br /&gt;
Three computers:&lt;br /&gt;
# &amp;#039;&amp;#039;Aubrey&amp;#039;&amp;#039; -- the &amp;quot;client&amp;quot; on which we want to run our program&lt;br /&gt;
# &amp;#039;&amp;#039;Babbington&amp;#039;&amp;#039; -- Our proxy host, and the far end of the tunnel&lt;br /&gt;
# &amp;#039;&amp;#039;Coleman&amp;#039;&amp;#039; -- The FlexLM license server&lt;br /&gt;
&lt;br /&gt;
We need to forwards ports &amp;lt;code&amp;gt;27000&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;1970&amp;lt;/code&amp;gt; from Aubrey, through Babbington, and ultimately to Coleman.  This command should work:&lt;br /&gt;
&lt;br /&gt;
 ssh -N -v -L 27000:coleman:27000 -L 1970:coleman:1970 babbington&lt;br /&gt;
&lt;br /&gt;
Obviously, alter the ports to match your vendor daemon.&lt;br /&gt;
&lt;br /&gt;
This command will create two tunnels that connect ports 27000 on the &amp;#039;&amp;#039;aubrey&amp;#039;&amp;#039;  to a tunnel that ends at &amp;#039;&amp;#039;babbington&amp;#039;&amp;#039;.  &amp;#039;&amp;#039;Babbington&amp;#039;&amp;#039; will then try to connect to port 27000 on &amp;#039;&amp;#039;coleman&amp;#039;&amp;#039;.  The same then happens with port 1970.&lt;br /&gt;
&lt;br /&gt;
The last step is to alter your &amp;#039;&amp;#039;&amp;#039;LM_LICENSE_FILE&amp;#039;&amp;#039;&amp;#039; envrionment variable to use the local--forwarded!--port.  Here, we use &amp;#039;&amp;#039;matlab&amp;#039;&amp;#039; as an example:&lt;br /&gt;
 LM_LICENSE_FILE=27000@localhost matlab&lt;br /&gt;
&lt;br /&gt;
Matlab should now start...&lt;/div&gt;</summary>
		<author><name>Hawson</name></author>
	</entry>
</feed>