Sysinternals Homepage
Forum Home Forum Home > Sysinternals Utilities > BgInfo
  New Posts New Posts RSS Feed - Public IP address
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Public IP address

 Post Reply Post Reply
Author
Message
lazna View Drop Down
Newbie
Newbie


Joined: 25 September 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote lazna Quote  Post ReplyReply Direct Link To This Post Topic: Public IP address
    Posted: 19 March 2017 at 9:19pm
Have one line script to discovery public IP address (in case computer is behind NAT), is there any way to incorporate it into bginfo, so bginfo run such command and (if internet connection available) display public IP with other data?

for /f "tokens=4 delims=: " %A in ('nslookup -debug myip.opendns.com. resolver1.opendns.com 2^>NUL^|findstr /C:"internet address"') do echo %A

L.
Back to Top
WindowsStar View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 June 2010
Status: Offline
Points: 774
Post Options Post Options   Thanks (0) Thanks(0)   Quote WindowsStar Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2017 at 4:59am
Yup, put in a CMD file and then call it in BGInfo. -WS
Back to Top
lazna View Drop Down
Newbie
Newbie


Joined: 25 September 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote lazna Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2017 at 10:14am
Could you be more specific please? Rest data collecting by custom WMI query, have no idea how to incorporate batch script with WMI query :-/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.06
Copyright ©2001-2016 Web Wiz Ltd.