The WiFi systems of portable phones make it easy to get the phone's unique number or IMSI.
I think the root of this problem is that the phone transmits a unique number that the user cannot change. When I connect to WiFi or ethernet, I change my MAC address each time I use a different network. Machines that won't let you do this are mistreating you.