hamncheese/n2n/thirdparty/miniupnp/miniupnpc/external-ip.sh
2023-09-14 21:50:26 -05:00

4 lines
161 B
Bash
Executable file

#!/bin/sh
# $Id: external-ip.sh,v 1.1 2010/08/05 12:57:41 nanard Exp $
# (c) 2010 Reuben Hawkins
upnpc -s | sed -n -e 's/^ExternalIPAddress = \([0-9.]*\)$/\1/p'