Title: Show IP Address
Author: Keith Griffiths
Published: <strong>17. juni, 2015</strong>
Last modified: 3. november, 2026

---

Søg plugins

![](https://ps.w.org/show-ip-address/assets/banner-772x250.png?rev=3780296)

![](https://ps.w.org/show-ip-address/assets/icon-256x256.jpg?rev=3780296)

# Show IP Address

 Af [Keith Griffiths](https://profiles.wordpress.org/keithgriffiths76/)

[Download](https://downloads.wordpress.org/plugin/show-ip-address.2.0.0.zip)

 * [Detaljer](https://da.wordpress.org/plugins/show-ip-address/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/show-ip-address/#reviews)
 * [Udvikling](https://da.wordpress.org/plugins/show-ip-address/#developers)

 [Support](https://wordpress.org/support/plugin/show-ip-address/)

## Beskrivelse

Show IP Address provides a small set of shortcodes for displaying request information.
It does not store visitor information or call a third-party IP lookup API.

The default shortcode output is loaded from this site’s own WordPress REST API. 
This avoids putting one visitor’s IP address into HTML that may be served to other
visitors by a full-page cache. If a host or security plugin blocks the REST API,
the shortcode displays an unavailable message rather than a potentially incorrect
cached address.

By default, the plugin uses the address seen by the web server (`REMOTE_ADDR`). 
If a site is behind a proxy or CDN, this may be the proxy’s address. Forwarded headers
are not trusted automatically because they can be forged unless the proxy is configured
to set them securely. Hosting providers or site developers can add trusted proxy
support with the `show_ip_address_client_ip` filter.

### Shortcodes

 * `[show_ip]` — Display the visitor’s IP address.
 * `[show_ip_hostname]` — Display the reverse-DNS hostname when available. This 
   performs a DNS lookup only when requested.
 * `[show_ip_useragent]` — Display the browser user-agent string when supplied.
 * `[show_ip_referrer]` — Display the referrer URL when supplied. Browsers and privacy
   settings may omit it.

All shortcodes accept `mode="server"` for server-rendered output, for example `[
show_ip mode="server"]`. Use this only on pages excluded from full-page caching;
otherwise a cache may show one visitor’s details to another.

Shortcodes render with the CSS class `show-ip-address` and a field modifier such
as `show-ip-address--ip`. The plugin adds no global styles, so typography and colour
inherit from the active theme. You can target these classes in your theme stylesheet
if desired.

### Compatibility

The plugin uses WordPress core APIs, PHP, and a same-site REST request. It has no
third-party IP lookup API, custom database table, shell command, or host-specific
server dependency. The optional hostname shortcode uses the host’s DNS resolver 
when requested. The dynamic shortcode requires JavaScript and access to the site’s
WordPress REST API. If that request is blocked, the plugin reports that the information
is unavailable.

PHP 7.4 is the minimum code compatibility level. PHP 7.4 is end-of-life; use a PHP
version that still receives security updates from your hosting provider. WordPress.
org recommends PHP 8.3 or newer.

### Privacy

The plugin does not store the displayed visitor details. The visitor IP is returned
to that same visitor by a public, read-only endpoint on the current site. Site owners
remain responsible for their own privacy notices and server/CDN logging.

## Skærmbilleder

[⌊Illustrative preview of the shortcode list.⌉⌊Illustrative preview of the shortcode
list.⌉[

Illustrative preview of the shortcode list.

[⌊Illustrative preview of the dashboard widget.⌉⌊Illustrative preview of the dashboard
widget.⌉[

Illustrative preview of the dashboard widget.

[⌊Example of adding a shortcode to a page.⌉⌊Example of adding a shortcode to a page
.⌉[

Example of adding a shortcode to a page.

[⌊Illustrative preview of proxy and privacy notes.⌉⌊Illustrative preview of proxy
and privacy notes.⌉[

Illustrative preview of proxy and privacy notes.

## Anmeldelser

![](https://secure.gravatar.com/avatar/e167a7aee0b2ef06d0272573ddcb77a10b215c425d0bd068de5012a105679dc8?
s=60&d=retro&r=g)

### 󠀁[Works perfect](https://wordpress.org/support/topic/works-perfect-592/)󠁿

 [M.F. Jong](https://profiles.wordpress.org/mfjtf/) 14. juli, 2018

Even though this plugin is not updated for several years it works just perfect. 
We use it on our support pages so clients can see their own IP address when we need
it.

![](https://secure.gravatar.com/avatar/aebd7230334706dc5b75bbd2cf67271b5f61860e0cf20ce422369f15101078c6?
s=60&d=retro&r=g)

### 󠀁[Show IP Address worked perfectly out of the box](https://wordpress.org/support/topic/show-ip-address-worked-perfectly-out-of-the-box/)󠁿

 [zixus](https://profiles.wordpress.org/zixus/) 3. september, 2016

The plugin worked as expected without any issues giving accurate information about
the site visitors IP address, should be a great solution for those that need it.

![](https://secure.gravatar.com/avatar/e87d2ba5b2989d9b3687fd6bee8908746738e70efbe8952f0a1cda6722f9fefe?
s=60&d=retro&r=g)

### 󠀁[Developer fixed "invalid header" problem](https://wordpress.org/support/topic/the-plugin-does-not-have-a-valid-header-108/)󠁿

 [trishahdee](https://profiles.wordpress.org/trishahdee/) 3. september, 2016 5 svar

UPDATE: Developer fixed problem so I am changing my 1-star review to 5-stars as 
it is working great now. Thank you! —- Original Review —- Can not activate the plugin.
When I try I get the following message: The plugin does not have a valid header.

![](https://secure.gravatar.com/avatar/430d1e730c12252146dc7cf02ddcb9b079be5cdfeb5d476a92d4deeeb3545d82?
s=60&d=retro&r=g)

### 󠀁[A work in progress](https://wordpress.org/support/topic/a-work-in-progress-5/)󠁿

 [Keith Griffiths](https://profiles.wordpress.org/keithgriffiths76/) 3. september,
2016

I thought I would create a simple plugin,that does what its meant to do, it's simple
and it works. Working on a few issues to do with 'shell_exec()' but apart from that
it works.

![](https://secure.gravatar.com/avatar/4a0aa61d7af032fa166bfbf1460839261522c7bdc9ae2b259c7599d1df94b064?
s=60&d=retro&r=g)

### 󠀁[Poor Support – Dashboard Errors UPDATED!](https://wordpress.org/support/topic/poor-support-dashboard-errors/)󠁿

 [luckyfox](https://profiles.wordpress.org/luckyfox/) 3. september, 2016 2 svar

As promised, the plugin has been revised/updated and returned to it's roots of being
a plugin designed to show one's IP and doing it correctly and effectively. Glad 
to see we were able to get things sorted! Thank you so much for listening and working
with feedback, author! Updated to 5 stars for doing what it's meant to do, simple
and well! ORIGINAL REVIEW ( 1 Star ) Created support topic over 2 months ago. https://
wordpress.org/support/topic/disabled-shell_exec Even went so far as to attempt to
contact him via his personal site to ensure he was made aware of this problem and
support topic via http://www.keith-griffiths.com/contact-me No reply at all. Creator
boasts "Any suggested updates I'll consider in each build." but can't be bothered
to provide support for an issue that has arisen specifically from this plugin. 1
star, because no lower rating is available, due to errors and nonexistent support.

 [ Læs alle 5 anmeldelser ](https://wordpress.org/support/plugin/show-ip-address/reviews/)

## Bidragsydere & udviklere

“Show IP Address” er open source-software. Følgende personer har bidraget til dette
plugin.

Bidragsydere

 *   [ Keith Griffiths ](https://profiles.wordpress.org/keithgriffiths76/)

[Oversæt “Show IP Address” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/show-ip-address)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/show-ip-address/), tjek
[SVN repository](https://plugins.svn.wordpress.org/show-ip-address/), eller abonner
på [udviklerloggen](https://plugins.trac.wordpress.org/log/show-ip-address/) via
[RSS](https://plugins.trac.wordpress.org/log/show-ip-address/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 2.0.0

 * Retained the original four shortcodes and legacy `get_the_user_ip()` helper.
 * Added cache-safe, same-site dynamic output and clear fallback when the REST request
   is unavailable.
 * Uses `REMOTE_ADDR` by default and validates IP values; added a filter for trusted
   proxy integrations.
 * Removed unnecessary global CSS and host-specific server calls.
 * Added a simple dashboard widget that displays the current administrator’s connection
   IP.
 * Namespaced plugin functions and CSS classes to reduce conflicts with themes and
   other plugins.

#### 1.8

 * Added hostname, user-agent, and referrer shortcodes.
 * Refactored the plugin to remove external dependencies.

#### 1.7

 * Improved shortcode handling for forwarded IP headers and escaped output.

## Meta

 *  Version **2.0.0**
 *  Senest opdateret **5 dage siden**
 *  Aktive installationer **900+**
 *  WordPress-version ** 5.8 eller højere **
 *  Testet op til **7.1.4**
 *  PHP-version ** 7.4 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/show-ip-address/)
 * Tags
 * [diagnostics](https://da.wordpress.org/plugins/tags/diagnostics/)[ip address](https://da.wordpress.org/plugins/tags/ip-address/)
   [show ip](https://da.wordpress.org/plugins/tags/show-ip/)[visitor ip](https://da.wordpress.org/plugins/tags/visitor-ip/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/show-ip-address/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  5 5-stjernet anmeldelser     ](https://wordpress.org/support/plugin/show-ip-address/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/show-ip-address/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/show-ip-address/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/show-ip-address/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/show-ip-address/reviews/?filter=1)

[Din anmeldelse](https://wordpress.org/support/plugin/show-ip-address/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/show-ip-address/reviews/)

## Bidragsydere

 *   [ Keith Griffiths ](https://profiles.wordpress.org/keithgriffiths76/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/show-ip-address/)