Reputation: 13
in Wifi Direct the group owner address always be 192.168.49.1 or it changes?
I'm new to android. please help me.
Thanks in advance.
cheers.....
Upvotes: 1
Views: 5545
Reputation: 4087
Though I strongly believe that there should be no implementation where you need to directly rely on the IP Address
of the GroupOwner
, according to Android Source Code(Search for SERVER_ADDRESS
in the file) the IP Address
of the GroupOwner
is 192.168.49.1
and is final and static
.
Word of Caution: This might get changed anytime in the future, and hence, you must never rely on the value itself. You should always use isGroupOwner to find out whether a device is GroupOwner
or not.
Upvotes: 2
Reputation: 3430
This seems to be IP address 192.168.49.1.Due to DHCP it will change-unless you have a static IP.
Upvotes: 0