I am trying to connect to my Rabbit RCM5400 from internet with winsock (VB6) Not sure if the router is the problem. It works with LAN but not with WAN.
Please provide a sample: here the code:
#class auto
#define IFC_WIFI_SSID “SSID”
#define IFC_WIFI_MODE IFPARAM_WIFI_INFRASTRUCTURE
#define IFC_WIFI_REGION IFPARAM_WIFI_REGION_MEXICO_INDOORS
#define IFC_WIFI_ENCRYPTION IFPARAM_WIFI_ENCR_TKIP
#define WIFI_USE_WPA
#define IFC_WIFI_WPA_PSK_PASSPHRASE “Password”
#define IFPARAM_WIFI_WPA_PSK
#define _PRIMARY_STATIC_IP “192.168.1.94”
#define _PRIMARY_NETMASK “255.255.255.0”
#define MY_NAMESERVER “192.168.1.254”
#define MY_GATEWAY “192.168.1.254”
#define TCPCONFIG 5
#use “dcrtcp.lib”
#use “ConfigPuertos_Decoder.lib”
#define PORT 1234
#define IFC_WIFI_ROAM_ENABLE 1
#define IFC_WIFI_ROAM_BEACON_MISS 20
#define FAST_INTERRUPT 0
#define RABBITCLK_INIT brdInit();
#use “RCM54xxW.LIB”