开发者

Server on virtual machine setup? [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

开发者_如何学运维 Improve this question

I just started to learn about networking and decided to run my own node.js server The problem is i have almost no idea what im doing :( I installed a virtual ubuntu 64 server, installed nodejs and all the prereqs. I downloaded a sample (https://github.com/ry/node_chat) and dont know if its working or not. i run node on the server file and get "server running at 127.0.0.1:1337" How do i see it on my host (physical) machine?

Thanks!!

ps i have no domain, virtual is running on NAT network and my physical is behind a router


In your virtual machine (ubuntu 64bit) start the terminal and run

ifconfig

This should give you the ip address assigned to your virtual machine (192.168.x.x) something like that. On your host open up a browser and type in http://192.168.x.x: in your case will be 1337.

I would recommend you configure your VM to always have that ip static and setup the hosts files on your host machine to point to the ip address, making it easier to get to the server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜