Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 419877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:49:15+00:00 2026-05-12T18:49:15+00:00

Hai Guys, How to get wan ip address of my user using php….

  • 0

Hai Guys,
How to get wan ip address of my user using php….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:49:15+00:00Added an answer on May 12, 2026 at 6:49 pm

    On a typical LAN setup, where the entire LAN is connected to the internet via a router, each computer on the LAN would share a “external”, WAN IP (assigned to the router), but each of them would have a “internal”, LAN IP (typically 192.168..).

    In that scenario, all external requests by any computer on that LAN would appear to come from the same WAN IP. The router alone would be aware of which computer on the LAN the request belongs to, so there would be no way for your PHP to detect the LAN IP, but only the WAN IP (via the $_SERVER[‘REMOTE_ADDR’] element)

    If the request is internal (like say to a HTTP server on the same LAN), the $_SERVER[‘REMOTE_ADDR’] element would retain the LAN IP of the computer that made the request.

    In short, the server only knows the IP of the device that sent the request, regardless of whether that IP belongs to a LAN, WAN or any other sort of network.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hai guys, I ve been using javascript to get my validations,effects and so on...
Hai Guys, I have a multiline textbox and I have set MaxLength=160 ,also i
Hai guys, Can we implement default pagination like asp:gridview for a datagridview in a
Hai Guys, My application deals scheduled mail concept (i.e) every morning 6.00 am my
Hai guys, I started a new asp.net mvc application and i followed the steps
Hai Guys, Like DataAccessApplicationBlock for .net with sql server,Is there any thing for MySql
Hai guys, I want to send scheduled mail every morning from my application and
hai guys, I have imported my gmail contacts from gmail and a file name
Hai guys, I ve implemented the following code in the below link: https://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/ Can
Hai Friends, i am trying to load 20 images.I get outofmemory error. how to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.