Hostname and IP handling fixes, plugin name fix for Medusa