Updated Sample2 to be able to change which network interface is used.