Web Link Q: - joining ip + port

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • drgfx
    Forum Member
    • Apr 2005
    • 52

    Web Link Q: - joining ip + port

    I'm sorry to bother... but I'd really appreciate any assistance.
    I'm trying to join the local ip with a port# to create a weblink, it seems like it should be ez - nut it's really kinda ticking me off =(

    I have the lan Ip address - how can I join this to a port# to create a weblink.

    *I'm trying to connect to a chat server running locally, but the IP may be different on computer the thing I'm making gets installed on - so want the link to change if the Ip changes and the link is port specific also.

    -------------------------------------------------------------------
    tLanInfo = System.GetLANInfo();
    Input.SetText("laninfo", "Local IP Address : "..tLanInfo.IP);
    ?
    ?
    localurl = (laninfo,":2001");
    Web.LoadURL("Web1", ...localurl...);
    -------------------------------------------------------------------

    the weblink should come out looking like:
    http://laninfo: port

    Thnx in advance...
  • longedge
    Indigo Rose Customer
    • Aug 2003
    • 2498

    #2
    Hello,

    The attached example does what you want (I think) and then displays the variable that has been 'built' in a label. You can just as easily use the variable to open a url in a web object say.

    Hope that helps.

    Comment

    • drgfx
      Forum Member
      • Apr 2005
      • 52

      #3
      Awesome! That's exactly what I was looking for!
      You made it look so easy... thank you again.

      Comment

      • longedge
        Indigo Rose Customer
        • Aug 2003
        • 2498

        #4
        Originally posted by drgfx
        Awesome! That's exactly what I was looking for!
        You made it look so easy... thank you again.
        That's exactly what I so often think about the stuff that the more advanced members of the forum produce and make freely available to us all - glad it helped though.

        Comment

        Working...
        X