DDNS use No-IP

Dependents:   TCPEchoClient-WIZwiki-W7500

Prerequisite

This is DDNS_NoIP Library. DDNS(Dynamic DNS) host name is linked up to the uesr's dynamic IP address. Whenever the IP changes a dynamic DNS client will send an update to No-IP with the current IP address and then No-IP propagates the DNS change to the internet within seconds.


DDNS Configuration

NoIP Site

https://www.noip.com/ /media/uploads/joon874/1.png

/media/uploads/joon874/14.png

Hardware Configuration

WIZwiki-W7500 Pin map

pin map


Software

DDNS

/* Set ID Pass and Hostname */
void userSetNoIP(char* idpass, char* hostname);

/* Upload DDNS IP Address */
void updateNoIP(void);

/* Check DDNS IP Address */
void checkIp(void);


Caution

DDNSClient.h

Committer:
Ricky_Kwon
Date:
2016-01-25
Revision:
1:a5d5ddadd7e7
Parent:
0:807cbe212e24

File content as of revision 1:a5d5ddadd7e7:

#ifndef DDNS_CLIENT_H
#define DDNS_CLIENT_H
#include "mbed.h"
/** DDNSClient class.
 */
class DDNSClient{
public:
    /** Create DDNSClient instance */
    DDNSClient();
    ~DDNSClient();

    void updateNoIP(void);
    void userSetNoIP(char* idpass, char* hostname);
    void checkIp(void);
private:
    TCPSocketConnection DDNSupdate;  
    TCPSocketConnection CheckIp;
    
    char* noip_ddns;
    char* check_ip;
    int noip_ddns_port;
    int check_ip_port;
    
    char* _hostname;
    char* _ip;
    char* _idpass;

};
#endif