User`s guide

RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 18
2.3.34 set ip host <address>
This command sets the remote host’s IP address, where <address> is an IP address
in the form <value>.<value>.<value>.<value> with <value> being a number between 0
and 255. You use this command to make connections from the WiFly module to a TCP/
IP server with the IP address <address>.
Default: 0.0.0.0
Example: set ip host 137.57.1.1 // Sets the remote host’s IP address to
// 137.57.1.1
2.3.35 set ip localport <value>
This command sets the local port number, where <value> is a decimal number repre-
senting the port.
Default: 2000
Example: set ip localport 1025 // Sets the local port to 1025
2.3.36 set ip netmask <address>
This command sets the network mask, where <address> is an IP address in the form
<value>.<value>.<value>.<value> with <value> being a number between 0 and 255. If
DHCP is turned on, the netmask is assigned and overwritten when the module associ-
ates with the access point.
Default: 255.255.255.0
Example: set ip netmask 255.255.0.0 // Sets the netmask to 255.255.0.0
2.3.37 set ip protocol <flag>
This command sets the IP protocol, where <flag> is a bit-mapped register as shown in
Figure 2-2. To be able to connect to the WiFly module over TCP/IP (for example using
telnet), you must set bit 2 of the IP protocol register. For the module to accept both TCP
and UDP set bits 1 and 2 (value = 3).
FIGURE 2-2: SET IP PROTOCOL COMMAND BIT-MAPPED REGISTER
Default: 2
Example: set ip protocol 18 // enables TCP and HTTP client mode
2.3.38 set ip remote <value>
This command sets the remote host port number, where <value> is a decimal number
representing the port.
Default: 2000
Example: set ip remote 1025 // Sets the remote host port to 1025
12340
UDP.
TCP server and client (default).
Secure mode (only receive packets form an IP address that matches the stored host IP).
TCP client only.
HTTP client mode.