code-8
code-8

Reputation: 58652

Best way to check if your VM is running

Browser

VM ip = 172.16.67.137

I goto : http://172.16.67.137:1234/vse/accounts.count on my local brower

I got this response

Object
data:Object
account_count:20
message:"Success"
status:200

Terminal

But how comes when I tried ping that URL

All of them return me

ping: cannot resolve http://172.16.67.137:1234/vse/accounts.count: Unknown host


Did I do something wrong or missing any steps ?

I just want to check if my VMs is running before do any other action, otherwise, throw some errors.

Hope someone can shed some lights on this ...

Upvotes: 0

Views: 96

Answers (2)

André Ferraz
André Ferraz

Reputation: 1521

Ping only works with url's not uri's or ports. When I say URL I mean with out http://

You would have to do this:

ping 172.16.67.137

Ping does not work with ports

You could use telnet to check it.

telnet 127.0.0.1 8080

Upvotes: 1

Alex Andrei
Alex Andrei

Reputation: 7283

From the terminal run curl to get the response

curl http://172.16.67.137:1234/vse/accounts.count

Upvotes: 0

Related Questions