You can use an init script like this as well. If you have a firewall enabled on this machine, make sure your firewall is open for the port specified.
From 3.4.11 and 4.1.1
Set the following alfresco global properties:
ooo.host=<OpenOffice host ip address> ooo.port=<OpenOffice port number> ooo.enabled=true
ooo.host is set to localhost by default so needs to be overridden.
Following the movement of OpenOffice transformations into a sub-system, the original configuration offered by this page did not work ([See this ticket in Jira]). However the basic approach of overriding spring beans still held. Instead of overriding beans in the general application context, beans in the OOoDirect subsystem context needed to be overridden.
On the Alfresco side, you need to create a remote-openoffce-context.xml file in the extensions directory (ex. tomcat/shared/classes/alfresco/extension)