Prices Show Only To A Certain Ip

How could I show prices on frontend only to a certain IP address?

Unfortunately, no. You can only set the "Allow shopping for unlogged customers" setting to 'Hide price and the "Add to cart" button' and hide blocks with the ability to register. Then use test account to see prices

Thank you for your answer, but how about showing stock qty only for admin or certain ip, and customers see only Product in stock if the stock > 0