Yes, TikTok can establish your local and Public IP address. That is because TikTok scans the WIFI or internet router around you. Also, it reads your sim card to know your public IP address.