SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict scoobasteve1982's Avatar
    Join Date
    Apr 2007
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to get local IP

    Hi there,

    I'm looking for a way to get a users local IP, not their public IP. I've only been able to achieve this by writing an Applet in Java. I would rather use PHP. Is this even possible? Any shell type of commands? Any help would be greatly appreciated.

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Ummm....Unless you are on the same local network no you cannot get the Private IP. Nor would you need to! Anyways chances are there Private IP is in the 192.168.1.x range.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •