use cat5e cable direct connect computer to printer



I am wondering if I can use the Ethernet printer direct connect computer to
printer. The CAT 5e male to male cable is suppose used for networking
printer to connect printer to a hub.
I bought a printer and I do not have USB A/B cable on hand. So I try to use
CAT 5e Cable.
I have problem when I install the drivers. I do not know how to enter the IP
address
information.

Thanks for help

.