             let api = try IpfsApi(host: self.hostString, port: self.hostPort)
             
             /// NB: This test will require the user to change the peerAddress to a known peer.
-            let peerAddress = "/ip4/192.168.5.18/tcp/4001/ipfs/\(self.altNodeIdString)"
+            let peerAddress = self.peerIPAddr+"/ipfs/"+self.altNodeIdString
             let expectedMessage = "connect \(self.altNodeIdString) success"
             
             try api.swarm.connect(peerAddress){

    func testSwarmPeers() {
        
        /// NB: This test will require the user to change the knownPeer to a known peer.
        let knownPeer = "/ip4/192.168.5.18/tcp/4001/ipfs/\(self.altNodeIdString)"
        
        let swarmPeers = { (dispatchGroup: dispatch_group_t) throws -> Void in
            let api = try IpfsApi(host: self.hostString, port: self.hostPort)

                result in
                
                /// Subtract one because last element is an empty directory to ignore
                let resultCount = result.count
                
                XCTAssert(resultCount == filePaths.count)
                
