From 3cf932d42f4962dde802b3145719900e8a6ae30f Mon Sep 17 00:00:00 2001 From: lurchi Date: Mon, 5 Nov 2018 12:38:09 +0100 Subject: [PATCH] shorten example upnp output --- README.md | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 0ebccfb..c6409bd 100644 --- a/README.md +++ b/README.md @@ -39,23 +39,9 @@ By default `UPNP` is used for detecting the server's public IPv4 address. So we ``` $ upnpc -s -upnpc : miniupnpc library test client, version 1.9. - (c) 2005-2016 Thomas Bernard. -Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ -for more information. -List of UPNP devices found on the network : - desc: http://10.0.0.1:5000/rootDesc.xml - st: urn:schemas-upnp-org:device:InternetGatewayDevice:1 - -Found valid IGD : http://10.0.0.1:5000/ctl/IPConn -Local LAN ip address : 10.0.0.23 -Connection Type : IP_Routed -Status : Connected, uptime=530079s, LastConnectionError : ERROR_NONE - Time started : Tue Oct 30 08:57:09 2018 -MaxBitRateDown : 10000000 bps (10.0 Mbps) MaxBitRateUp 1000000 bps (1.0 Mbps) +[...] ExternalIPAddress = 85.98.82.44 -Bytes: Sent: 402633281 Recv: 816703147 -Packets: Sent: 3408416 Recv: 4216845 +[...] ``` If we don't get a value for `ExternalIPAddress`, we should check our router and firewall settings. If `UPNP` does not work for us (e.g. in case the server is behind a Carrier Grade NAT), we can define our own method for looking up our public IPv4 address using the `public_ip4_hook` config option, e.g.