You have to configure port forwarding in your main router, and your main router must have public IP address to let it works.