Automate IP address detection.
Indeed, I want the external IP. :(
any other possible paths in sight?
Did I say thank you?
I do now : )
Since you are dealing with arbitrary Internet addresses, you either need to know someone’s address and connect to that, or connect to some server that helps you find each other. Some options:
1) Before each session, go look up your IP and then tell your friends to plug that into the patch. (you could use some site like whatismyip.com like Scott suggested)
2) Get a static IP address or domain name, and hard code the Max patches to connect to that. I think you can have a domain tied to a dynamic IP – there are software tools for this but I don’t know much about it.
3) Setup a server with a known address (static IP or domain name) and hard code your Max patches to connect to that in order to find each other. Now you are getting into developing custom client/server software. This is probably more trouble than it’s worth, unless you have experience doing such things.
Regardless of your choice, you may find you have trouble connecting unless you poke some holes in your router’s and computer’s firewall settings.
Well, it seems there are ways to do it. Will look into all the options, and will drop a report once I get somewhere.
Thank you all!!
if the punx are capable of finding their own ip then you might just put a
text-box in whatever patch you send them and not bother with automating it.
On Wed, Oct 22, 2008 at 11:43 AM, lparra
> Well, it seems there are ways to do it. Will look into all the options, and
> will drop a report once I get somewhere.
> Thank you all!!
If you have Jitter you can ask that website for the IP address from within Max. Here’s an example. Please note my knowledge of [regexp] is pretty poor but this seems to work if you give it a few kicks first.
----------begin_max5_patcher---------- 798.3ocwWsrbaBCEcs8WwcXU6LDBBaLlLcQ6xtqa6j3ICOjsUFPhQHpsaZ92 qd.1wIw13DLYCftHjNmiz4pKONbfULaMtzBtAtEFL3wgCFnCoBLnt8.q7n0I YQk5tYkvxywTgks4cB7ZgNNYNrgUAKvBHhBXNmwgbbYYzBLH3a.VAlRnKjuL ERxXkpmEKwvsOPDNpQYNICOCVQnorU.ilfcZliLBEmvpn5IxqNXQjHYobPtm iSDFBD343ZCdgH8MuQpaiF63Byp+FZUNglgEZlfpCNmQEznbrlE+fShxr10c Vkno+tOq+kj+p6ORMilvjT8.vhe3pwVpPOMbn5hcK003JgfQsNL6lNUwGTf9 lmay0iSt8oPSTSHwlBrYnshinKr1NROiJSdOTghWI+1WsCQ.wvJ0ROVuY3HT E4VSRMKCG2Nt11ExQGUErAKCHUOow41Y8zq7n2ibcHGEGmiyiwbPvfEj+TaU pxRylABRNVEW5UnYrnTsUZoHOCJYU7DLDimy3XnfKsfMVs82h0VWEZh1Og77 0KCic+rrUdWDaU8dsd1WE32gFqBNY21m2fhiFoSLNBsMiXWZmZ+B3jvtLaBq bSdLK6z7t9.A+vtk2GbQ+bRX30kRhJ8Pof6bFRyDsnLMnakFuCJM1mo7L8BH Ob7B75B36xzi+VlrD94ufnzTUhRfTBe4V2qB+myrGCt6N6m952NhH54ZrRiM xWPGar7OjJJIx84QBNYsROaeqyR4C5XkuoDuVnmlSZ7C5oi86LIaRGKYpi5a gbYpRZLpm7ve.A5ccnW8OQ7JEZaoOKEhhat95UKiDjx7MjhZ2rirvpqgFndJ YDM0bz+jQlVGRG89TNlXueoP+g552dwetoYmJ99xoojv5o0TUuMrido3RAgJ EOYcR65i29cZIIMESe9484jzBlrviZLDF33q7tlyUjkZzzBl8lK5sEqxJkNM XQmGV+fPRlaTxsSoeS6WLMtMqo98Kll1FLE1uXJrEXZROiI+Kfe7ihoVkiHn WwD5BHSHzEJukBrntFr9l+A+h.VutFrgdsQYkMdZ3+go1wcy -----------end_max5_patcher-----------
Quote: firstname.lastname@example.org wrote on Sun, 26 October 2008 14:28
> If you have Jitter you can ask that website for the IP address from within Max. Here’s an example. Please note my knowledge of [regexp] is pretty poor but this seems to work if you give it a few kicks first.
works flawlessly here! thank you.
I was getting a "PCRE error -10" printed to the max window the first time I tryed to send the text out of [jit.textfile] which could be avoided by opening it and closing it again every time new html source is [jit.uldl]-ed into it. The error code is less than enlightening but I did stumble across another example on the forum and the response seemed to be that perhaps some of the characters in the text are being misunderstood or are confusing the regex parser due to using different character encodings. I just wanted to mention that in case anyone could shed some light on the matter but it isn’t particularly important.
> I just wanted to mention that in case anyone could shed some light on
> the matter but it isn’t particularly important.
I get the same PCRE error -10 on my PPC Powerbook and OS 10.4.11. Would
be nice if this could be resolved and/or shed some light on it….
Stefan, does opening and closing [jit.textfile] stop you getting the error message or are you having no luck at all with the patch?
You can aswell set up your own server on your own computer
and direct your friends there via yourownserver.dyndns.org
dynamic dns works quite nicely for me, actually.
even your router should support automatic ip updating of your server in case your ISP changes your ip at home every 24 hours or so.
> Stefan, does opening and closing [jit.textfile] stop you getting the
> error message or are you having no luck at all with the patch?
Yes, it does, but its annoying to be forced to do it. If there would be
another way to convert all non conform characters into conform ones I’d
do that but I don’t know how…
It’s on a PPC Powerbook and OS 10.4.11 btw…
Forums > MaxMSP