Piwik setting for two network card

Dear Support Team,
We install piwik at ubuntu server which included two network card : one is internet, and another is intranet.
Because we can connect intranet directly , but we can not connect internet . So would it be possible to use intranet card to capture internet card website flow situation ? Thank you.
For example : the code as listed as below is intranet card used, how can we use it to capture internet website flow situation ?