To allow inbound connections to the daemon p2p and the RPC (assuming default ports are used), you would need:
And ensure your firewall allows inbound connections on ports
If you are behind a router, that would also need configuring to forward traffic on those ports to your machine running the daemon.
Note, you may also want to add the login option for the RPC:
--rpc-login arg Specify username[:password] required
for RPC server
--rpc-access-control-origins arg Specify a comma separated list of
origins to allow cross origin resource