On Aug 26, 2010, at 3:50 PM, Monte Goulding wrote:
Hi Everyone
To determine the domain name of the computer Rev is running on we use
hostName() and to turn that into an IP we use hostNameToAddress(hostName()).
If you are behind a router this will return your LAN IP however if your
Monte,
There was an external called RevZeroConf, it is outdated but might work. I
will look into my archives to see if I can dig it out (it was three machines
ago but there's a chance it came thru in my Rev folder)
On Fri, Aug 27, 2010 at 12:27 AM, Monte Goulding
mo...@sweattechnologies.com
Hi Everyone
To determine the domain name of the computer Rev is running on we use
hostName() and to turn that into an IP we use hostNameToAddress(hostName()). If
you are behind a router this will return your LAN IP however if your computer
is using a modem it will return a public IP. I need a
Hi Monte,
Does
hostnametoaddress(localhost)
work for you?
--
Kind regards,
Mark Schonewille
Economy-x-Talk
Http://economy-x-talk.com
Share the clipboard of your computer over a local network with Clipboard Link
http://clipboardlink.economy-x-talk.com
Op 27 aug. 2010 om 00:50 heeft Monte
You could just ping whatIsMyIp.com
On Aug 26, 2010, at 3:50 PM, Monte Goulding wrote:
Hi Everyone
To determine the domain name of the computer Rev is running on we
use hostName() and to turn that into an IP we use
hostNameToAddress(hostName()). If you are behind a router this will
Unfortunately not because that will return a public IP. Nothing on the WAN
should be able to determine the LAN IP.
Cheers
Monte
On 27/08/2010, at 8:57 AM, Jim Ault wrote:
You could just ping whatIsMyIp.com
On Aug 26, 2010, at 3:50 PM, Monte Goulding wrote:
Hi Everyone
To determine
Hi Mark
That will always return 127.0.0.1 which if entered into the iPhone would make
the iPhone want to sync with itself. I need a local network IP.
Cheers
Monte
On 27/08/2010, at 8:54 AM, Mark Schonewille wrote:
Hi Monte,
Does
hostnametoaddress(localhost)
work for you?
--
Monte,
Go for the parsing of ifconfig, I think it is the easier one.
:D
On Thu, Aug 26, 2010 at 8:20 PM, Monte Goulding mo...@sweattechnologies.com
wrote:
Unfortunately not because that will return a public IP. Nothing on the WAN
should be able to determine the LAN IP.
Cheers
Monte
On
On Aug 26, 2010, at 3:54 PM, Mark Schonewille wrote:
Hi Monte,
Does
hostnametoaddress(localhost)
I get 127.0.0.1 which is my cpu, which is what I would expect.
work for you?
Op 27 aug. 2010 om 00:50 heeft Monte Goulding mo...@sweattechnologies.com
het volgende geschreven:
Hi
Yeah, that was what I was thinking I would have to do... :-)
Cheers
Monte
On 27/08/2010, at 9:26 AM, Andre Garzia wrote:
Monte,
Go for the parsing of ifconfig, I think it is the easier one.
:D
___
use-revolution mailing list
On Thu, Aug 26, 2010 at 8:29 PM, Jim Ault jimaultw...@yahoo.com wrote:
On Aug 26, 2010, at 3:54 PM, Mark Schonewille wrote:
Hi Monte,
Does
hostnametoaddress(localhost)
I get 127.0.0.1 which is my cpu, which is what I would expect.
Jim,
that is loopback it is useless for anything
Monte,
If you're in control of both applications (the iPhone one and Rev one), you
can code so that they find each other without user interaction. You can use
ZeroConf for that or so some brute force attempts such as looping all the
local ip address range looking for each other.
For example, if
For example, if my Rev built-in server listen at port 9876, I can make the
iPhone app find it's own ip and then go for x.x.x.1 til x.x.x.254 trying to
connect on port 9876, no manual ip thing needed but could be provided if
automatic lookup failed.
Hmm I never thought of that. What about
OK, a few mods to Ken Ray's great getMACAddress function and while we implement
zeroconf users can just copy the result of the function to their phone:
http://goulding.ws/consulting/open-source/
PS I know there was a zeroconf external a long time ago. Is it still being
maintained? Although if
Monte,
Never tried broadcasting TCP but broadcasting UDP should work. You could
fire some UDP packets as a kind of ping, your client would then gather the
IP from that.
:D
On Thu, Aug 26, 2010 at 9:42 PM, Monte Goulding mo...@sweattechnologies.com
wrote:
For example, if my Rev built-in
Hmm.. we are looking at zeroconf and either writing an external or using dns-sd
in shell to register.
Cheers
Monte
On 27/08/2010, at 12:50 PM, Andre Garzia wrote:
Monte,
Never tried broadcasting TCP but broadcasting UDP should work. You could
fire some UDP packets as a kind of ping, your
16 matches
Mail list logo