How to capture local lan ip in php

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
arvnd86

Mon May 06, 2013 11:55 pm

Hi to all,

How to fetch local lan ip address in php..?

User avatar
sandeep605085
New php-forum User
New php-forum User
Posts: 44
Joined: Tue Feb 26, 2013 6:00 am
Location: Mindfire Solutions
Contact:

Wed May 08, 2013 10:03 am

Hi,

Check this

<?php
$localLanIp = gethostbyname(trim(`hostname`));
?>

Thanks,
Sandeep Agrawal
Mindfire Solutions.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests