If you have access to a supplier with good OEM pricing, try the Turck FEN20-4DIP-4DXP.
I see them retail around $300, but I believe I had pricing from someone at one point around $100.
They do Ethernet IP and profinet and have a pass through switch which is great, all in a small footprint.