IP address convertor IP address convertor
English
The mission is in Reviewing Mode. You can't see the solutions Leader Board, but you can see other user solutions through the Random Review after you solve the mission.

Convert string representation of IP address into integer

Input: One string argument.

Output: Integer.

Example:

ip_address("127.0.0.1") == 2130706433
ip_address("192.168.0.1") == 3232235521

How it is used: Have you ever seen any computer with no internet connection?

Precondition: String representation of IP address in 'X.X.X.X' form where 0 ≤ X ≤ 255