node.js - Is it possible to access a localhost from a vagrant devbox? -


i'm running application on local vagrant vm on computer , wondering if created node server ran on localhost (also on computer) able access node server vagrant application ?

with default vagrant settings, can reach host computer via ip 10.0.2.2. @ least true virtualbox provider. haven't tested others far.

if have configured node server on host machine in way listens all ip addresses assigned host computer should able access

http://10.0.2.2 

from within vagrant virtual machine.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -