How to get iPhone's IP address in swift

How to get iPhone's IP address in swift?

Why do you need up address for ? Which IP : private, public, wifi ?

How to get iPhone's IP address in swift
 
 
Q