Port Forwarding issue?

Discussions about using Mac OS X guests (on Apple hardware) in VirtualBox.

Port Forwarding issue?

Postby slick514 » 8. Feb 2016, 23:32

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   Expand viewCollapse view
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   Expand viewCollapse view
myserver:~$ cd myproject
myserver:~/myproject$ rails s
=> Booting WEBrick
=> Rails 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   Expand viewCollapse view
myserver:~/myproject$ curl htt p://localhost:3000
<!DOCTYPE html>
<html lang="en">
... lots of 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?
Posts: 1
Joined: 8. Feb 2016, 22:28
Location: So Cal
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Ubuntu

Return to Mac OS X Guests

Who is online

Users browsing this forum: No registered users and 6 guests