example.rb now optionally takes hostname / port as arguments.