I need to find out a way to find out subnet mask and broadcast address of my personal hotspot in iOS.
I am using following way to find out IP address of device if it
where address is assigned, just insert:
netmask = [NSString stringWithUTF8String:inet_ntoa(((struct sockaddr_in *)temp_addr->ifa_netmask)->sin_addr)];