fixed sendfile
added auto ip search