Both options are valid.
You can access your FTP account using either your domain name or your IP address.
If you have not yet changed your DNS settings, or your domain was just registered, you will need to connect using the IP address. This is the only situation where connecting via IP is necessary.