fix to use proper agent ip var

Change-Id: If5fff9d45b4523d0787f5d25c2c0c63d8bacc4f2
Merge "fix to use proper agent ip var"