Atom connection with xampp problem in windows 10

My atom live server port and Xampp localhost port are different and I can’t insert data from HTML PHP form to the localhost server. what to do to avoid this problem?