WiFi Direct - Getting IP of group owner

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable

In WiFi direct mode, I am joining a group as a client. How can I get the IP address of the group owner in order to send UDP packets? I see where to get the MAC address of the group owner, but not the IP.

One idea is to send a broadcast packet from the group owner to everyone on the network, but I figure there is likely some easier way I am just not seeing.



2 Replies
Not applicable

The same question goes for SoftAP mode.

Not applicable

Hello nrcrast​,

You can use console application and use 'status' in command prompt and the Gateway gives the AP ip address. Please check the following UART logs:

Starting WICED v4.0.0-RC5

Platform BCM943907AEVAL1F initialised

Started ThreadX v5.6

Initialising NetX_Duo v5.7_sp2

Creating Packet pools

WWD SoC.43909 interface initialised

WLAN MAC Address : 98:F1:70:6F:80:F0

WLAN Firmware    : wl0: Sep 14 2016 03:52:54 version (r659433 WLTEST) FWID 01-7efa11eb

Console app

> join OnePlus3 open

Joining : OnePlus3 8

Successfully joined : OnePlus3

Obtaining IPv4 address via DHCP


IPv4 network ready IP:

Setting IPv6 link-local address

IPv6 network ready IP: FE80:0000:0000:0000:9AF1:70FF:FE6F:80F0

> status

WICED Version  : 4.0.0-RC5

Platform      : BCM943907AEVAL1F

Driver & FW    : (r659433 WLTEST) FWID 01-7efa11eb

MAC Address    : 98:F1:70:6F:80:F0

STA Interface

  MAC Address : 98:F1:70:6F:80:F0

  SSID        : OnePlus3

  Channel    : 6

  BSSID      : C0:EE:FB:80:44:19

  IP Addr    :

  Gateway    :

  Netmask    :

AP Interface  : Down

P2P Interface  : Down

Ethernet Interface  : Down

If you need more info please let me know.

Best regards,

Ramesh Mylavarapu