dotA = txtIP.Text.IndexOf2(".", 0)
For i = 0 To dotA - 1
valA = valA & txtIP.Text.CharAt(i)
Next
IPa = valA
If IsHost = True then
dotA1 = txtMask.Text.IndexOf2(".", 0)
For i = 0 To dotA1 - 1
maskA = maskA & txtMask.Text.CharAt(i)
Next
MaskIPa = maskA
' Tried inserting codes to convert the IP values to binary first but still gives me godly amount of value
NetIP = Bit.And(IPa, MaskIPa)
Log(NetIP)
End If