Jquery Ajax..

Jquery Ajax..

Hi, 
I have a html pages that call a javascript.
In the javascript file i call two URL that response with a text.
For do this i use Ajax Call with the code below :
With this code in a function, i recall the function in 2 step.
The first with pass IP1, the second pass IP2
If the HTML and JS file is on my pc (desktop directory) the system work on every IP.
If i put this file in my server online, i read only the IP2.!
I don't understand how works only the second ip.
I try to change the sequence IP2 than IP1, nobody, only an IP works!
help me please ! 

  1. function pass(ip){
  2. $.ajax({
  3.               type: "GET",
  4.               url: 'http://'+ip,
  5.       dataType:"text",
  6.       success: function (data2) {
  7.                                           $('#respose').text(data3);
  8.               }
  9. });
  10. }