i am trying to connect with my application's api using curl http://192.168.1.11:4000/api/v1/login
but i always get error curl: (7) Failed to connect to 192.168.1.11 port 4000: Connection refused
.
whereas if i am using localhost curl http://localhost:4000/api/v1/login
its allowing to connect to server.
Strange thing is i am able to use ip address curl http://192.168.1.11:3000
for my another project without any error.
How can it be worked around.