Not able to add Network Server

Hello Chiprstack Community,
I am not able to add network server profile in chirptack which is deployed on aws ubuntu server.
Here is screenshot for same.

The error means that the AS can’t connect to the NS using the given IP:PORT. Are the AS and NS running on two different machines? In case not, you should be able to connect using localhost:8000

It worked Thanks brocaar.But Now I am trying to add a gateway to it is not indicating status that it got connected.The Gateway Id is set to DevEui of Dragino Gateway.