Skip to content

How to test networking

EvilLord666 edited this page Oct 30, 2016 · 1 revision

Essentially when you code is written the next question is how to test network interactions.

The best way is to connect you PC and device via router, but what should we do if we have not hardware router just now. If you have linux you could setup lightweight router with shell script:

  1. We connected device to ethernet port directly via cable.

  2. Port is connected with interface eth1 with ip 192.168.200.1, device ip - 192.168.200.5

  3. Setting up router on eth1:

sudo echo 1 > /proc/sys/net/ipv4/ip_forward

route add -net 192.168.200.0/24 gw 192.168.200.1

Clone this wiki locally