Either will work. If you connect it behind your home router, you may find that the service works better if you forward certain ports to the Voipo ATA. However, many find that port forwarding is not necessary.