Port Forwarding issue?

Discussions about using Mac OS X guests (on Apple hardware) in VirtualBox.
Post Reply
slick514
Posts: 1
Joined: 8. Feb 2016, 22:28
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Ubuntu
Location: So Cal

Port Forwarding issue?

Post by slick514 »

So, I've had Ubuntu running as a test-server with no problems for a while. I've got ports forwarded and I can easily use this to access things like SSH functionality, web-site testing, etc...

However, while trying to get a ruby/rails development environment set up, I ran into issues.
* I can create a very simple project successfully:

Code: Select all

myserver:~$ rails new myproject
... lots of output... done!
* I can start the server successfully: (This is not the precise input/output: The forum filters do not like me to have the Acronym for HyperTextTransferProtocol in my post, because I am new...)

Code: Select all

myserver:~$ cd myproject
myserver:~/myproject$ rails s
=> Booting WEBrick
=> Rails 4.2.5.1 application starting in development on htt p://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2016-02-08 13:02:13] INFO  WEBrick 1.3.1
[2016-02-08 13:02:13] INFO  ruby 2.1.5 (2014-11-13) [x86_64-linux-gnu]
[2016-02-08 13:02:13] INFO  WEBrick::HTT PServer#start: pid=1438 port=3000
At this point, running the following curl command yields expected results

Code: Select all

myserver:~/myproject$ curl htt p://localhost:3000
<!DOCTYPE html>
<html lang="en">
<head>
... lots of html ...
</body>
</html>
However, attempting to access the same content via a port that has been forwarded on the host system ends up failing: Navigating to "htt p://localhost:3010" (with port-forwarding setup to forward 3010 -> 3000 on the VM) yields a result that says "No data received: ERR_EMPTY_RESPONSE".
I am presently using port-forwarding (successfully) to work with ssh (2223 -> 22), htt p (8083 -> 80), etc... with no problem.
Any ideas about what might have gone wrong here, or where I can look to find the answers?
Post Reply