     }
 
     @objc private func ipAddressDidChange(textField: UITextField) {
-        if let text = textField.text {
+        if let text = textField.text?.replacingOccurrences(of: decimalSeparator, with: ".") {
             if text.components(separatedBy: ".").count == 4 && ascii2addr(AF_INET, text, nil) > 0 {
                 self.okAction?.isEnabled = true
                 return

    private let walletManager: WalletManager
    private var okAction: UIAlertAction?
    private var timer: Timer?

    init(walletManager: WalletManager) {
        self.walletManager = walletManager

                    UserDefaults.customNodePort = Int(portText)
                }
                DispatchQueue.walletQueue.async {
                    myself.walletManager.peerManager?.connect()
                }
                myself.button.title = S.NodeSelector.automaticButton
            }
        })
        self.okAction = okAction
