Shop OBEX P1 Docs P2 Docs Learn Events
Pink module and a dynamic IP — Parallax Forums

Pink module and a dynamic IP

mojorizingmojorizing Posts: 249
edited 2009-11-10 07:48 in General Discussion
So you have the pink module accessible from the internet via a router with port forwarding enabled. The cable internet service uses a dynamic IP and the IP address changes one day. Now all the html that is hardcoded in the pink refers to the old IP address. Is there a way to remotely reconfigure the html in the pink, or ??? I don't think DynsDNS is a solution to this problem. Any thoughts?

Kevin

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Bad spellers of the world untie!

Comments

  • FranklinFranklin Posts: 4,747
    edited 2009-11-09 18:57
    If the pink is behind a router does not the router provide the IP for the pink? If so set it to static and dyndns should handle the change of your ISPs IP address. Show us the code you are talking about, please.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • mojorizingmojorizing Posts: 249
    edited 2009-11-09 23:19
    My question was brought up after reading this post mentioning the great graphic examples...
    http://forums.parallax.com/showthread.php?p=850895

    All mentions of the "yourhost" in the examples is the IP address plus the port number that is forwarded. For example, http://75.111.34.156:3333 forward to a pink w/ address 192.168.1.250. Replace "yourhost" with http://75.111.34.156:3333 and you're good to go unitl the IP changes. The port forwarding occurs throught the router, but you still need the IP address in the html residing in the Pink.

    Kevin

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Bad spellers of the world untie!
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-11-10 02:01
    If I understand you correctly, you have referenced your pages to the local address of the PINK rather than using relative references. Is this correct? If so I wuld not recommend using the full path in specifying links. Use relative addresses that refer only to the paths and not the base address.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    50 72 6F 6A 65 63 74 20 53 69 74 65
    ·
  • TumblerTumbler Posts: 323
    edited 2009-11-10 07:48
    Kevin,

    Like Chris said, use relative addresses.

    If your IP changes a lot, i suggest to create a dynamic IP at no-ip.com or dyndns. Both have a tool that copies your IP into their Database.
    Works great.
    ·
Sign In or Register to comment.