Hello juacarri,
RLM server communicates with the client via two TCP ports: RLM port and ISV port - you can check both numbers on the server side via web-interface or log/diagnostics. Check from the client's side, that it can reach license server via its IP in the local network (or hostname) and both ports.
Also on the client's side you can create server.lic file in the following format:
HOST 111.222.333.4444 any 5053
use server IP or hostname instead of 111.222.333.444 from the example. 5053 stands for RLM port.
Alternatively use agisoft_LICENSE in port@address format.
P.S. If you are using macOS, you need to create the following directory if it doesn't exist and give full access privileges:
sudo mkdir "/Library/Application Support/Reprise"
and
sudo chmod 777 "/Library/Application Support/Reprise"