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 is unable to resolve hostname of local PC

Other Parts Discussed in Thread: CC3200, ENERGIA

Hello All,

I have a setup of following..

1. Host PC (Macbook Pro) where a TCP/IP server application is running
2. CC3200 device as client

Both Host PC and CC3200 device are connected over common Wi-Fi access point (TP Link Wi-Fi access point).
CC3200 device programming is done using Energia Sketch programs.

CC3200 device is able to connect with host PC application by using Host PC IP address. All is good and working.

Problem:
If CC3200 device is asked to resolve IP address using host PC network name, it is unable to resolve. However CC3200 device is able to resolve standard websites such as Google and Facebook.
I am not sure, what could be the problem and any help on this will be greatly appreciated.

Thanks,

Ajit B

  • Hi Ajit,

    You will not be able to resolve your PC's IP address using regular DNS unless your host has a fully qualified domain name and is registered with DNS. I think what you want is mDNS. Energia currently does not feature any high level API's for mDNS. You can however still use the SimpleLink API's directly in your Sketch. I suggest looking into the examples that come with the CC3200 SDK. There are several that use mDNS. I am not sure though if there is an example that discovers resolves a PC service. CC3200 team, can you please help out with an example?

    Thanks,

    Robert@Energia

  • Hi Robert,

    Thanks for your response.
    I will check in CC3200 SDK if there are any examples related to mDNS. Also will await for response from CC3200 team for further information on mDNS example.

    Meanwhile a quick question.. What's the difference between mDNS and DNS ? Who handles DNS and who handles mDNS ?


    Thanks and Regards,
    ~Ajit
  • I am not the expert on this but: DNS (Domain Name System) is a system that resolves fully qualified domain names to IP addresses. This typically applies to machines connected to the internet with public ip addresses. You can however run your own DNS server on a local network.

    In short, mDNS (multicast Domain Name System) resolves host names to IP addresses within small networks that do not include a local name server.
  • Hello,

    is there already a solution for this problem? i have exactly the same problem and i am highly interessted in it's solution.

    thanks!

  • I do not have plans to implement a high level mDNS API for Energia. You will need to use the SimpleLink API's to implement the mDNS functionality in Energia. There is an example posted here which I believe is a copy of the mDNS example in the SimpleLink SDK: github.com/.../mdns
  • exactly it's a copy.
    i solved the problem that i used the mDNS from the simplelink and created my own mDNS Service on my laptop using the apple bonjour service and create wie dns-sd an own service like so: dns-sd -R MqttServer _mqtt._tcp local 1883