Posts: 13
Threads: 8
Joined: Dec 2019
Reputation:
0
Location: Poland
Is possible connect to NNTP by IPV6?
Posts: 13
Threads: 8
Joined: Dec 2019
Reputation:
0
Location: Poland
01-04-2020, 01:18 PM
(This post was last modified: 01-04-2020, 02:07 PM by AndrzejB.)
But I havent IPVersion, if I type "ip" is only "BoundIP". Maybe I have old version of Indy. I work with FreePascal and last I customized Delphi version of Indy to FreePascal.
Id_IPv6 have IdSocks, IdFtp, IdIcmpClient, etc.. but not NNTP.
ok
IdNNTP1.Socket.IPVersion:=Id_IPv6
but this is bad
--> I move IPVersion from protected to public
Posts: 13
Threads: 8
Joined: Dec 2019
Reputation:
0
Location: Poland
How to test IpV6?
I like test with localhost.
Posts: 655
Threads: 2
Joined: Mar 2018
Reputation:
36
Location: California, USA
01-07-2020, 07:29 PM
(This post was last modified: 01-07-2020, 07:30 PM by rlebeau.)
Simply create a TCP/NNTP server that is bound to a local IPv6 network adapter for listening. For instance, using TIdNNTPServer, add an entry to its Bindings collection and set that entry's IPVersion property to Id_IPv6 and IP property to '::1' (or any specific local IPv6 address of your choosing), and then set the server to Active=true to begin listening.
Then you can connect TIdNNTP to that server using Host='localhost' and IPVersion=Id_IPv6.