Thank you for posting on the HP Support Community.
To get the answer to this question, Although the printer can be used in both wired and wireless network, only one of the connection methods can be used at a time. When the wired (Ethernet) setting is enabled, the wireless setting is disabled.
Hope this helps! Keep me posted for further assistance.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.