Take a laptop to the PLC and connect directly to it with an ethernet crossover cable. If you CAN connect, then it's a network configuration issue. If you CAN'T connect and you've confirmed the laptop and PLC are on the same subnet, then you have a setup issue in the PLC. If that's the case, post your program here and someone should be able to help.