title: Codeigniter ci_sessions table storing ip address as 0.0.0.0 why? even when hosted I am getting 0.0.0.0
body: <p>Hello in my codeigniter I have created table as ci_sessions with following fields</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS  `ci_sessions` (
      session_id varchar(40) DEFAULT '0' NOT NULL,
      ip_address varchar(45) DEFAULT '0' NOT NULL,
      user_agent varchar(120) NOT NULL,
      last_activity int(10) unsigned DEFAULT 0 NOT NULL,
      user_data text NOT NULL,
      PRIMARY KEY (session_id),
      KEY `last_activity_idx` (`last_activity`)
  );
  </code></pre>
  
  <p>Every field is working fine, except ip address which is storing as 0.0.0.0 for every client. I have edited my config.php as below.</p>
  
  <pre><code>$config['sess_cookie_name']     = 'ci_session';
  $config['sess_expiration']      = 7200;
  $config['sess_expire_on_close'] = FALSE;
  $config['sess_encrypt_cookie']  = FALSE;
  $config['sess_use_database']    = TRUE;
  $config['sess_table_name']      = 'ci_sessions';
  $config['sess_match_ip']        = TRUE;
  $config['sess_match_useragent'] = TRUE;
  $config['sess_time_to_update']  = 300;
  </code></pre>