Tell it to bind to an external address instead of localhost.
localhost
ssh -D 192.168.0.123:1234 example.com