Most likely the problem will be solved by fixing the port the license server listens on and then make the client connect to the right port. Hence, the license server line should look like
SERVER hostname hostid port
on both the server and client side.