Segment based on local network visitors (IP)

Hi,

We’re loooking for a way to create a segment in the Admin UI that will include (or exclude) visitors from our local network.
I read in the forums that it is possible via the API (>=.0 & <=.255).

I tried to do that in the admin UI via the folowwing options :
Visitor IP CONTAINS 192.168.8
Visitor IP CONTAINS 192.168.8.*
Visitor IP IS 192.168.8.XXX
etc…

None of these are working (0 visitor…). Do you know a way to achieve that in the admin UI or in the piwik config files ?
I know that we can exclude Ip Ranges from statistics, but we really want to include them in a specific segment.

Best regards,

Gautier

I’ve read somewhere (maybe in Trac) that wildcards aren’t supported in IP…

Ah! here: 301 Moved Permanently

Dali

Ok, i understood…

Considering that a report is an HTTP API call, you can generate a PDF by typing directly the following URL when connected to the admin UI

http://[HOMESITE]/index.php?module=API&action=index&idSite=1&period=month&date=yesterday
&segment=visitIp>=XXX.XXX.XXX.0;visitIp<=XXX.XXX.XXX.255
&token_auth=[TOKEN_AUTH]&method=PDFReports.generateReport&idReport=1&outputType=3&language=fr

It works great.

Best regards,

Gautier