SRB2/libs/miniupnpc/external-ip.sh

5 lines
161 B
Bash
Raw Normal View History

2014-03-15 16:59:03 +00:00
#!/bin/sh
2023-12-30 16:35:35 +00:00
# $Id: external-ip.sh,v 1.2 2017/11/02 15:33:09 nanard Exp $
2014-03-15 16:59:03 +00:00
# (c) 2010 Reuben Hawkins
2023-12-30 16:35:35 +00:00
upnpc -s | sed -n -e 's/^ExternalIPAddress = \([0-9.]*\)$/\1/p'