Issue:
[root@sunt5220a /]#>telnet localhost 5000
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
Solve:
This is because we did not enable svc:/ldoms/vntsd:default,
svcadm enable svc:/ldoms/vntsd:default
enable it and everything works fine.