how can i find the ip adress of my hp deskjet 2540 all in one series

It should use DHCP and request your router to assign it a dynamic IP address from the range that your router is set up to distribute IP addresses from. That's unless you set up the printer with a hard-coded IP address and in which case you can find it in the printer's setup.

If the router assigned it, you should still be able to display it on the printer, or log in to your router and see which IP address is assigned to the printer.
 
Solution