--connect fix for localhost.