How To Set Ip Addresses In The Sample Programs - RabbitCore RCM2000 Series Getting Started Manual

C-programmable module with ethernet
Hide thumbs Also See for RCM2000 Series:
Table of Contents

Advertisement

4.7 How to Set IP Addresses in the Sample Programs

Most of the sample programs such as shown in the example below use macros to define the
IP address assigned to the board and the IP address of the gateway, if there is a gateway.
#define MY_IP_ADDRESS "216.112.116.155"
#define MY_NETMASK "255.255.255.248"
#define MY_GATEWAY "216.112.116.153"
In order to do a direct connection, the following IP addresses can be used for the RCM2200:
#define MY_IP_ADDRESS "10.1.1.2"
#define MY_NETMASK "255.255.255.248"
// #define MY_GATEWAY "216.112.116.153"
In this case, the gateway is not used and is commented out. The IP address of the board is
defined to be 10.1.1.2. The IP address of you PC can be defined as 10.1.1.1.
30
RabbitCore RCM2200

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RCM2000 Series and is the answer not in the manual?

This manual is also suitable for:

Rcm2200

Table of Contents