This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3200 UDP Socket Server IP Address

Other Parts Discussed in Thread: CC3200

Dear,

I am using the CC3200 in AP mode.

I did try UDP socket communication.

UDP server is CC3200 and client is my computer.

UDP client program was written by QT program in my computer.

UDP client need server IP address for UDP socket connection.

But, I can't find server IP address.

Would it be possible to set or get UDP server IP?

If not, Please inform me how to use server IP.

Regards!

Juhee Park.

  • Hi,

    The IP is nothing but the gateway IP of the CC3200 AP.

    Please add the below print message after 'sl_NetCfgGet(SL_IPV4_AP_P2P_GO_GET_INFO,&ucDHCP,&len, (unsigned char *)&ipV4);' in WlanAPMode function of 'getting_started_with_wlan_ap' example.

     UART_PRINT("IP %d.%d.%d.%d MASK %d.%d.%d.%d GW %d.%d.%d.%d DNS %d.%d.%d.%d\n\r",
                SL_IPV4_BYTE(ipV4.ipV4,3),SL_IPV4_BYTE(ipV4.ipV4,2),SL_IPV4_BYTE(ipV4.ipV4,1),SL_IPV4_BYTE(ipV4.ipV4,0),
                SL_IPV4_BYTE(ipV4.ipV4Mask,3),SL_IPV4_BYTE(ipV4.ipV4Mask,2),SL_IPV4_BYTE(ipV4.ipV4Mask,1),SL_IPV4_BYTE(ipV4.ipV4Mask,0),
                SL_IPV4_BYTE(ipV4.ipV4Gateway,3),SL_IPV4_BYTE(ipV4.ipV4Gateway,2),SL_IPV4_BYTE(ipV4.ipV4Gateway,1),SL_IPV4_BYTE(ipV4.ipV4Gateway,0),
                SL_IPV4_BYTE(ipV4.ipV4DnsServer,3),SL_IPV4_BYTE(ipV4.ipV4DnsServer,2),SL_IPV4_BYTE(ipV4.ipV4DnsServer,1),SL_IPV4_BYTE(ipV4.ipV4DnsServer,0));
    

    Regards,
    Raghavendra

  • Hi Raghavendra,

    Thank to you. I solved the problem.

    Juhee Park.
  • Hi,

    Good to know you solved the problem. I am closing this thread.

    Regards,
    Raghavendra