r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Core] Discuss core issues

Terry
28-Jan-2006
[3243x8]
well, my wireless router assigns an internal IP 192.168.1.100 (for 
example), and if I do a get-modes udp:// 'interfaces I get..

addr: 127.0.0.1
netmask: 255.0.0.0
broadcast: none
dest-addr: none
flags: [multicast loopback]
name: "if65540"
addr: 192.168.1.100
netmask: 255.255.255.0
broadcast: 192.168.1.255
dest-addr: none
flags: [broadcast multicast]
Nothing in there that I can send to you, that will allow you to find 
me.. so how do i determine (via Rebol) the IP address assigned to 
the router?
Not sure that this can even be determined with Rebol.. Probably need 
to do a workaround.. send a http request to a remote script, peel 
the IP from that, send it back?
Like this.. 

getIP: read http://whatismyip.com
parse getIP [thru "displaycopy('" copy myIP to "'"]
tried IP chicken.. seems slower.
http://www.ipchicken.com/
Maybe I should put that into a view pane and enter it into the contest?
Hmm, too late to hide the source code huh? :)
Graham
28-Jan-2006
[3251x3]
http://www.compkarori.com/cgi-local/whatismyip.r
<ip> 203.79.110.37 </ip>
ip chicken is way slower
Terry
28-Jan-2006
[3254x3]
Yeah, local versions of that scattered around the world would be 
help with the speed..your's is too slow for me
I put a PHP version on my server... no need to parse.. 

myIP: read http://lonestar.tv/myip.php
That's in the eastern states somewhere (1and1)
Graham
28-Jan-2006
[3257]
Mine is in texas.
Terry
28-Jan-2006
[3258x2]
who do you use.. rackspace?
and what's up with that xml you have wrapping your output?
Graham
28-Jan-2006
[3260x3]
webxess.com, and I wrap in tags to make it parse more easily
My script checks for proxy ,and fetches the forwarded address.
Some of these scripts only give you the address of the proxy.
Pekr
28-Jan-2006
[3263x4]
go and download Look @ Lan ... it si not further developed, but I 
use it often ...
there is no other way that to sequentially scan using ping ....
or some snmp tool, if your device suports it ...
the simplest way is to set your network card to DHCP mode, and try 
to obtain ip from your GW (router), of course if it has DHCP server 
running ...
Terry
28-Jan-2006
[3267x2]
This werks (cheap plug) Can use rebol to determine IP for LAN, and 
remote script for WAN... I've put a copy at http://squigglz.com/myip.php
and Im building a public name server using a squiggle to store and 
retrieve IP addresses.  ie: ~carl:ip~  will finish that off tomorrow
Need to build "Internet 2.0" concurrently with "Web 2.0" ;)
Pekr
28-Jan-2006
[3269]
:-)
Volker
28-Jan-2006
[3270]
linux has /usr/sbin/traceroute www.rebol.com

 1  xdsl-87-78-115-1.netcologne.de (87.78.115.1)  49.521 ms   53.405 
 ms   57.054 ms

 2  cat6509-pg2-vl12.netcologne.de (195.14.247.251)  62.797 ms   70.143 
 ms   72.741 ms

 3  core-pg1-vl110.netcologne.de (195.14.215.161)  75.522 ms   79.128 
 ms   82.716 ms
would the router show up here? 


there are not only myip-services, but also dynamic ips. there you 
connect, they store your current ip and then its reachable by mywishname.dyndns.ws 
or such. more effort on dialin, but then you have a name.
Terry
28-Jan-2006
[3271x3]
dyndns would be fine, but how do I creaete a dyndns update client 
with Rebol?
My router can update dyndns automatically, but I need something that's 
mobile.
in fact, if you're geeky enough, you can load up a Linksys WRT54G 
(Under the hood the unit sports a 125MHz MIPS processor with 16MB 
of RAM.) with some serious Linux apps.
Volker
28-Jan-2006
[3274]
they have a website and there are some binaries. on linux i found 
a few in my distor, the second worked nearly automatic, after editing 
something. for windows i guess there is something more comfortable. 
binaries makes sense because they are in my login-script :) I guess 
windows could pop up browser too, as gui is closer coupled to scripting?
Henrik
28-Jan-2006
[3275]
terry, yeah I tried loading the MIPS version of rebol onto my Linksys 
WAP54G access point, but it wouldn't run. :-)
Volker
28-Jan-2006
[3276x2]
but i dont know about mobile and automatically from rebol.
maybe ask Carl to recompile it :)
Henrik
28-Jan-2006
[3278]
I think it could have great potential. the AP has a mountain of stats 
that can be read out to a webpage. Imagine piping that out through 
a rebol service to a View app...
Volker
28-Jan-2006
[3279]
how about a chat-server? i guess it uses low power and could be on 
24/7?
Henrik
28-Jan-2006
[3280x4]
easily, as long as you don't store stuff on it
mine are always on. I use them as antenna bridges
and they are dirt cheap. I have though heard from a friend who bought 
the latest version, that his is equipped with VXWorks, not Linux
Linksys have a tendency to revise their products over time, give 
them the same name, but with cut down hardware and software. therefore 
it's always preferable to get older access points
Volker
28-Jan-2006
[3284]
imagine a beowulf-cluster of these :))
Henrik
28-Jan-2006
[3285]
yeah, well I don't think they are ultra fast (and there is only one 
ethernet port on mine), but I think you can do some bizarre stuff 
with them, such as cron scheduled downloads to an ethernet harddisk. 
I've always thought that REBOL could really do a lot for hardware 
at that level.
Volker
28-Jan-2006
[3286]
a /base needs <1mb AFAIK.
Henrik
28-Jan-2006
[3287x3]
it's kind of sad to see its standard firmware version only have the 
possibility to load stats up slowly on a webpage. I did something 
that could poll it through telnet for signal strength in realtime. 
Way more useful.
basically it's stuff that can easily be done to increase the value 
of the access point. Linksys could easily sell a fully pumped up 
version of the same access point with loads of bells and whistles 
(firewall, VPN, realtime stats, SSH access) for 3-4 times its current 
price and still be cheaper than competition. the hardware is really 
underutilized
there is a third party vendor who provides alternative firmwares 
with these features. the only limitation is the amount of RAM and 
the ROM space isn't big enough to hold all the features simultaneously
Volker
28-Jan-2006
[3290x2]
rebol could download the code from the client. could be signed maybe.
and display stats in some dashbopard-thingy. Maybe if CArl makes 
another holiday and sees this thing accidentally :)
Henrik
28-Jan-2006
[3292]
someone ought to send him such an access point. I can't imagine that 
it would take more than a days work to compile it for that hardware