Do you mean get the device's IP address? You can use the HTTPRequest commands and point to "https://api.ipify.org" which will return the active IP address that you can then parse in AGK. Here is a copy-paste code sample:
// Project: FetchIP
// Created: 2018-06-10
// show all errors
SetErrorMode(2)
SetWindowTitle( "Fetch IP" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 )
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
SetSyncRate( 30, 0 )
SetScissor( 0,0,0,0 )
UseNewDefaultFonts( 1 )
// Create HTTP Connection
http = CreateHTTPConnection()
SetHTTPHost( http, "api.ipify.org", 0 )
SendHTTPRequestASync( http, "/" )
while GetHTTPResponseReady(http) = 0
Print( "Fetching IP..." )
Sync()
endwhile
IPAddress$ = GetHTTPResponse(http)
CloseHTTPConnection(http)
DeleteHTTPConnection(http)
do
Print("IP Address: " + IPAddress$)
Sync()
loop