Te falta el identificador de la conexion en el mysql_query
Código PHP:
Ver original statusdeservicios.cabecera_cliente,
statusdeservicios.Fecha_hora,
statusdeservicios.Hostname,
statusdeservicios.Servicio,
statusdeservicios.Status
FROM
statusdeservicios
INNER JOIN tblorders ON (statusdeservicios.Servicio = tblorders.nameservers)
where
tblorders.ipaddress='".$ip."'",$conexion);
prueba y comentas
saludos