Fixed host port detection in root controller

Change-Id: I2294b151bea62842df24e09b71287204b61f9720