jQuery AJAX URL path issue
<p>In jQuery AJAX url place, if I give <code>http://172.121.0.1/filename.php</code>, it's working. If I give <code>http://localhost/filename.php</code> then it's working. Please help me.</p>

<pre><code>$.ajax({
          url: "http://172.22.0.155/login/login_check",
          type: "POST",
          data:$("#logins").serialize(),
          beforeSend: function(){
            $("#err").html("");
          },
          success: function($msg){
             if($msg=="yes"){
                document.location.href=urls+"main/";
             }else{
               $("#err").html("Please enter correct username and password");
               return false;
             }
          },error:function (msg){
           alert(msg);
          }
        });
</code></pre>
