IP address library IP address library with Nette / Doctrine 2 / Kdyby integration $ip = IP::createRemoteIP(); echo($ip->getIP()); // 127.0.0.1