Please follow the camera setup guide document for Foscam:
https://www.cameraftp.com/CameraFTP/Support/FoscamFI9831P.aspx
Note you must follow the instructions step by step. If you still cannot solve it, please email us the screenshots showing how you configured your camera. We can then check whether you configured anything wrong.
--------
FYI, CameraFTP is a cloud service provider. We don't make or sell IP cameras. CameraFTP System cannot connect to your camera, nor can it control/manage your camera. Instead, your camera connects to our server and uploads footage to our cloud storage. This is more secure from end-user's point of view as you maintain full control over your camera, and you are not locked in with our service. For the service to work, you just need to configure your camera to upload to our server.