How do I open a port on my Ubuntu 14.04 virtual server to my Mac from which it runs? [closed]

That instance of ruby is listening on port 1234 for connections from 127.0.0.1 only. So port forwarding won't change much unless you have it accept connections from your host machine.