Fixed errors that were making GCC mad.
Added in host/port parameters.