Stamford, CT to Ocean City, NJ buses and trains from $55

Or, see buses and trains from Ocean City, NJ to Stamford, CT.
Here are some trips other travelers have found on Routefriend.
5h 4m
2 stops
Metro-North Amtrak
4h 19m
1 stop
5h 48m
2 stops
Amtrak NJTransit
4h 39m
2 stops
Amtrak Amtrak
7h 22m
3 stops
Metro-North Amtrak