Bug erizo.js code which stops remote connections?

hope someone can help. we are not able to connect remote clients. client on
the local net work ok. the problem is in the code below. when the GET call
below is called from a remote client the URL it tries to connect to is the
local ip address of the remote nodejs server. in our case the nodejs server
is on local ip address 192.168.0.102. this is the ip address used in the
GET call on a local or remote run of our test application.

Socket.prototype.handshake = function (fn) {
var self = this
, options = this.options;

function complete (data) {
  if (data instanceof Error) {
    self.onError(data.message);
  } else {
    fn.apply(null, data.split(':'));
  }
};
var url = [
      'http' + (options.secure ? 's' : '') + ':/'
    , options.host + ':' + options.port
    , options.resource
    , io.protocol
    , io.util.query(this.options.query, 't=' + +new Date)
  ].join('/');

if (this.isXDomain() && !io.util.ua.hasCORS) {
  var insertAt = document.getElementsByTagName('script')[0]
    , script = document.createElement('script');

  script.src = url + '&jsonp=' + io.j.length;
  insertAt.parentNode.insertBefore(script, insertAt);

  io.j.push(function (data) {
    complete(data);
    script.parentNode.removeChild(script);
  });
} else {

// note: url is the local address of the nodejs server so a remote client
cannot connect.
var xhr = io.util.request();
xhr.open(‘GET’, url, true);
xhr.withCredentials = true;
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
xhr.onreadystatechange = empty;

      if (xhr.status == 200) {
        complete(xhr.responseText);
      } else {
        !self.reconnecting && self.onError(xhr.responseText);
      }
    }
  };
  xhr.send(null);
}

};