# i get ( port 502 can't be reached ) when i try to connect to cj2m plc why ?

**URL:** <https://forums.digi.com/t/i-get-port-502-cant-be-reached-when-i-try-to-connect-to-cj2m-plc-why/16349>\
**Category:** Digi One IA/IAP\
**Tags:** modbus, to, pc, plc, omron\
**Created:** [March 1, 2016, 12:04am UTC](https://forums.digi.com/t/i-get-port-502-cant-be-reached-when-i-try-to-connect-to-cj2m-plc-why/16349 "2016-03-01T00:04:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leineme](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@leineme](https://forums.digi.com/u/leineme)\
**Post date:** [March 1, 2016, 12:04am UTC](https://forums.digi.com/t/i-get-port-502-cant-be-reached-when-i-try-to-connect-to-cj2m-plc-why/16349/1 "2016-03-01T00:04:00Z")

</div>

i am trying to connect to plc using modbus tcp/ip via ethernet cable in c#

when i try the connection , it keeps telling me : port can’t be reached

how can i fix that ?
