add get gateway ip code