You could connect the PC and PS3 directly using a cross-over Ethernet cable, or connect them both to a hub, switch, router or access point. If they are in different rooms you could plug each into a Powerline adapter which then connects them via your power sockets.