Can someone provide an sample of a server with RCM5400?

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”

There are several standard TCPIP samples that should work

Hello, Check the tcp_config.lib file under
C:\DCRABBIT_10.72\Lib\Rabbit4000 cpip

In the above file mentioned that ,what are the macros you need to define in your application for different configurations.Below are the different configurations,

  1. Infrastructure, Open (no encryption) Configuration

  2. Ad-hoc, Open (no encryption) Configuration

  3. Infrastructure, WEP Encryption Configuration

  4. Infrastructure, WPA/TKIP Encryption Configuration, Pre-shared Key

  5. Infrastructure, WPA2/CCMP Encryption Configuration, Pre-shared Key

  6. Infrastructure, WPA Enterprise using EAP/TLS and CCMP Encryption

  7. Infrastructure, WPA Enterprise using PEAP and TKIP Encryption

Before defining the related macros, you need to know details about your Wi-Fi connection.