diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm
index a53e290ad..20919012c 100644
--- a/xCAT-server/lib/xcat/plugins/lsslp.pm
+++ b/xCAT-server/lib/xcat/plugins/lsslp.pm
@@ -1320,6 +1320,15 @@ sub getFactoryHostname
             $host = $hname;
         }
     }
+    if ( !$host ) {
+        my $hoststab = xCAT::Table->new( 'hosts' );
+        my @entries = $hoststab->getAllNodeAttribs(['node','ip']);
+        foreach my $entry ( @entries ) {
+            if ( $entry->{ip} and $entry->{ip} eq $ip ) {
+                $host = $entry->{node};
+            }
+        }
+    }
 
     return $host;
 }