← Microsoft questions
CodingEasy

Validate an IP Address

Filed under Microsoft · Also reported at Adobe, Cisco, Cvent, Deutsche Bank, Morgan Stanley, PubMatic, Sandvine, UBS

Write a function to validate whether a given string is a valid IPv4 address. An IPv4 address is formatted as four numbers separated by dots, where each number is between 0 and 255 and cannot have…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.