Fixes partition lookup for SC to handle different IPs. Fixes EUCA-7566.

Changed the partition lookup to not reference the localhost. Fixes a bug where
partition lookup breaks if SC is registered using IP other than the primary IP for
the local host.