Fixing issue with unknown host exception for localhost.