Connect to sandbox allow access from any where

i am using public internet center which is not able to tell ip so which ip i need to assign in the ip is it MongoDB ip or public internet ip we have to set if it is MongoDB ip which we want to set how to set the ip for any where access