{"record":{"id":"979bb64a58c56b02","repo":"sqlmapproject/sqlmap","slug":"local-host-address-is-missing","errorCode":null,"errorMessage":"local host address is missing","messagePattern":"local host address is missing","errorType":"exception","errorClass":"SqlmapDataException","httpStatus":null,"severity":"error","filePath":"lib/takeover/icmpsh.py","lineNumber":72,"sourceCode":"        message = \"what is the local address? \"\n\n        if self.localIP:\n            message += \"[Enter for '%s' (detected)] \" % self.localIP\n\n        valid = None\n        while not valid:\n            valid = True\n            address = readInput(message, default=self.localIP or \"\")\n\n            try:\n                socket.inet_aton(address)\n            except socket.error:\n                valid = False\n            finally:\n                valid = valid and re.search(r\"\\d+\\.\\d+\\.\\d+\\.\\d+\", address) is not None\n\n            if conf.batch and not address:\n                raise SqlmapDataException(\"local host address is missing\")\n            elif address and not valid:\n                warnMsg = \"invalid local host address\"\n                logger.warning(warnMsg)\n\n        return address\n\n    def _prepareIngredients(self, encode=True):\n        self.localIP = getattr(self, \"localIP\", None)\n        self.remoteIP = getattr(self, \"remoteIP\", None)\n        self.lhostStr = ICMPsh._selectLhost(self)\n        self.rhostStr = ICMPsh._selectRhost(self)\n\n    def _runIcmpshMaster(self):\n        infoMsg = \"running icmpsh master locally\"\n        logger.info(infoMsg)\n\n        icmpshmaster(self.lhostStr, self.rhostStr)\n","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/takeover/icmpsh.py#L54-L90","documentation":"Error \"local host address is missing\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/takeover/icmpsh.py:72 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}