PDA

View Full Version : Web Link Q: - joining ip + port



drgfx
06-07-2005, 08:33 PM
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
06-09-2005, 09:23 AM
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.

drgfx
06-18-2005, 10:43 PM
Awesome! That's exactly what I was looking for!
You made it look so easy... thank you again.

longedge
06-19-2005, 06:35 AM
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.