Du kannst eine Funktion dazu schreiben
function ipToBinary(ipAddress) {
const binaryParts = [];
const octets = ipAddress.split('.');
for (let i = 0; i < octets.length; i++) {
const binary = parseInt(octets[i]).toString(2).padStart(8, '0');
binaryParts.push(binary);
}
return binaryParts.join('.');
}