Of course you can open the WebUI to get your public ip address, but how about getting it programmatical?
Actually, it's simple, just add this line to '/jffs/configs/dnsmasq.conf.add':
interface-name=publicip.local,eth0/4
Now you can call:
nslookup publicip.local
or use for instance .Net's Dns class and get your public ip address as a standard dns lookup
This also works for dynamic public ip addresses.
Off course this only works on your lan.
Hope this can be useful to someone.
Actually, it's simple, just add this line to '/jffs/configs/dnsmasq.conf.add':
interface-name=publicip.local,eth0/4
Now you can call:
nslookup publicip.local
or use for instance .Net's Dns class and get your public ip address as a standard dns lookup
This also works for dynamic public ip addresses.
Off course this only works on your lan.
Hope this can be useful to someone.