NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: AtoB on July 25, 2026, 07:38:33 AM
-
(Using nettalk 14.38 and stringtheory 3.86)
I'm trying to get a webclient GET working with an IPv6 address (::1) and a specific port (8090), like this
::1:8090/yadayada
I've activated the LoggingOn property and it shows it reverts to port 80.
I think (!) the methods : .URLHostOnly and .URLPortOnly in stringtheory get confused by the use of "::" for the IPv6 address.
Maybe it needs to get the last ":" in the Host part of the url in order to seperate the port?
When I change:
e = self.findChar(':',p,,pURL)
To:
e = INSTRING(':',pURL,-1,s)
In both methods, it works (but I'm not sure wether this introduces side effects ...)
B.t.w. (local) server is IPv6 and via a browser (using [::1]:8090/yadayada) a get a valid response (and the server name shows up as "::1" in Nettalk)
-
Hi Ton,
I think you answered your own question;
>> ::1:8090/yadayada
that's not correct syntax.
>> using [::1]:8090/yadayada
that is correct syntax. If you are adding a port you need to add [ ]
-
Hi Bruce,
hmm ...
I tried the brackets around het ::1 part, but then the "server" becomes "[" (which is expected with current Stringtheory code as far as I can tell as there is no code that accounts for the brackets per se and it looks for the ":" from left to right).
Both "::1:port" and "[::1]:port" don't seem to work.
I've attached a screenshot of some debugview (in yellow the original request and the server part netwebclient resolves to)
Am I missing something still?
Regards,
Ton
-
Hi Ton,
I've made a new StringTheory build (3.88) which should take care of this for you.
>> using [::1]:8090/yadayada
>> that is correct syntax. If you are adding a port you need to add [ ]
Cheers
Bruce
-
Hi Bruce,
thanks a million
(great products and even better support!)