if you redirect the port from vagrant, you could be able to do curl
http://localhost:8999

c6405 is the name of the host of the guest machine?


if c6405 is the host machine, how name resolution works? can you ping c6405
??


On Thu, Apr 3, 2014 at 8:33 PM, Saurabh Mishra <
saurabhkumar.mis...@gmail.com> wrote:

> Hi,
>
> I have a vagrant shell action as " config.vm.provision :shell, :path =>
> "bootstrap.sh" in which i am starting an application which listens on a
> port example: 8999. The application starts with bootup , when i choose to
> use api call or curl or wget to reach the application in same shell script
> it fails to below errors.
>
> example:
>
> In Bootstrap i have this command:
>
> curl http://c6405:8999
>
> Error:
>
> curl: (7) couldn't connect to host
>
> After bootstrap.sh completes if i use the same url by login into the node
> using vagrant ssh host it works perfectly fine.
>
> I have iptables and ip6tables off in same bootstrap.sh , i have selinux
> disabled also. Any specific reason curl command or wget commands on ports
> cannot be used in shell action of vagrant??
>
>
> Please advice. Thank You.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to