scotch-io / scotch-box

Scotch Box is a preconfigured Vagrant Box with a full array of LAMP Stack features to get you up and running with Vagrant in no time.
http://box.scotch.io
2.7k stars 548 forks source link

Vagrant Share #370

Open chefuss opened 6 years ago

chefuss commented 6 years ago

Hi, I'm reaaaaallly new at vagrant and scotch box. And I'm having issues in using vagrant share. I can do it without the scotch box (been doing the vagrant course at scotch-io, specially the video that shows how to install apache2 and so). My vagrant file when I test the first time, without scotch box, the network part was the default: config.vm.network "forwarded_port", guest: 80, host: 8080 That work ok.

But when I install the scotch box, I have this errors:

default: Detecting network information for machine...
    default: Local machine address: 127.0.0.1
    default:  
    default: Note: With the local address (127.0.0.1), Vagrant Share can only
    default: share any ports you have forwarded. Assign an IP or address to your
    default: machine to expose all TCP ports. Consult the documentation
    default: for your provider ('virtualbox') for more information.
    default:  
Vagrant was unable to detect an HTTP port for your machine.

Because your machine appears to have no static IP associated with
it, Vagrant scans through your forwarded ports, looking for one
that responds to an HTTP request. Vagrant couldn't find any
functioning HTTP port!

There are a few options to fix this error:

  1. Create a forwarded port pointing to your HTTP server inside
     your Vagrant machine.

  2. Specify an HTTP port manually with `--http` to this command.

  3. Assign a non-local address to your machine. This may or may
     not be possible depending on what provider you're using.

  4. Make sure that the HTTP server is up and running within
     your machine. Vagrant share won't start until it is
     reachable.

The first thing I did was changing the network part of my vagrant file, adding the basic forwarding port, that work the first time, and leaving the private_network after that. It didn't work. So I commented the private_network from the scotch box, and leave the forwarded_port basic configuration, but it doesn't work!.

I've read the documentation for the share command at vagrantup.com. And I don't understand the fixes recommended in the console.

Don`t know what to do! Sorry for my english, hope you can help. Thanks!

whatnickcodes commented 6 years ago

Vagrant share was deprecated!

— Nicholas Cerminara Scotch Development

702.485.0853

--- original message ---

Mon, Mar 12 at 9:23 PM, notifications@github.com wrote:

Hi, I'm reaaaaallly new at vagrant and scotch box. And I'm having issues in using vagrant share. I can do it without the scotch box (been doing the vagrant course at scotch-io, specially the video that shows how to install apache2 and so).

My vagrant file when I test the first time, without scotch box, the network part was the default:

config.vm.network "forwarded_port", guest: 80, host: 8080

That work ok.

But when I install the scotch box, I have this errors:

default: Detecting network information for machine...> default: Local machine address: 127.0.0.1> default: > default: Note: With the local address (127.0.0.1), Vagrant Share can only> default: share any ports you have forwarded. Assign an IP or address to your> default: machine to expose all TCP ports. Consult the documentation> default: for your provider ('virtualbox') for more information.> default: >Vagrant was unable to detect an HTTP port for your machine.>Because your machine appears to have no static IP associated with>it, Vagrant scans through your forwarded ports, looking for one>that responds to an HTTP request. Vagrant couldn't find any>functioning HTTP port!>There are a few options to fix this error:> 1. Create a forwarded port pointing to your HTTP server inside> your Vagrant machine.> 2. Specify an HTTP port manually with --http to this command.> 3. Assign a non-local address to your machine. This may or may> not be possible depending on what provider you're using.> 4. Make sure that the HTTP server is up and running within> your machine. Vagrant share won't start until it is> reachable.

The first thing I did was changing the network part of my vagrant file, adding the basic forwarding port, that work the first time, and leaving the private_network after that. It didn't work. So I commented the private_network from the scotch box, and leave the forwarded_port basic configuration, but it doesn't work!.

I've read the documentation for the share command at vagrantup.com. And I don't understand the fixes recommended in the console.

Don`t know what to do!

Sorry for my english, hope you can help.

Thanks!

You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub, or mute the thread. --- end of original message ---

chefuss commented 6 years ago

First of all, thanks for the quick answer!! Oh!! but is still in the documentation!! Sorry, I didn't know! So, how can I work in multiple devices, only see the work on my mobile, and others?.

clotted commented 6 years ago

ngrok.com

chefuss commented 6 years ago

Hi, yes I'm using ngrok now. I only wanted to have everything in the same place, and working together. ngrok is great and have save my day.

Thank you all for the answers, should I close this?