Properly define IO daemon address

The address of the IO daemon is currently hard-coded as localhost. This should be properly defined and passed as an argument of the execute script.