If the mediaflux hostname is 'localhost', use 'http' for connecting.