Dim client as New System.Net.WebClient
Dim ip as String = client.DownloadString("https://api.ipify.org")
how can i use this VB.NET code inside MS to get my ip as a result??
vb ip
Moderators: JRL, Dorian (MJT support)
Re: vb ip
No idea how to alter VB.NET code to run in Macro Scheduler but if you want to know your web IP try the sample code included in the help for PyExec>. Works for me.
https://www.mjtnet.com/manual/index.html?pyexec.htm
https://www.mjtnet.com/manual/index.html?pyexec.htm
Re: vb ip
Alt.
Code: Select all
HTTPRequest>http://api.ipify.org,,GET,,strHTML
MDL>strHTML
Re: vb ip
@hagchr
Good job. Works faster than the python code and is only two lines.
Good job. Works faster than the python code and is only two lines.
