This will match IP addresses with ports numbers.
match = re.findall(r'[0-9]+(?:\.[0-9]+){3}:[0-9]+', source)
If you want to make it flexible to match IP address without the ports and With the ports, you can use:
match = re.findall(r'[0-9]+(?:\.[0-9]+){3}(:[0-9]+)?', source)