Licensing Frequency

We are on a closed network and the licensing expired. In order to license the software we need an offline method. If that is not possible and we need to work around this limitation, how often does your software need to contact the license server? What are ports need to be open for communication to the license server.