Port problem

my atom live server port is at 3000, localhost port is set at 8080, and PHP server port is set at 8000. now whenever I am trying to insert data in localhost from atom live server it is failing. what can I do to solve this problem???