Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Connected to IPv6 rather than IPv4

$
0
0

Hi,

 

Thanks for suggestion.

Never thought about that it would be ever matter, but I am not a network person so I dont really know.

I would look into how to add this kind of support in the future or at least an ability to do it but I would prefer to use something more generic since this method only will use if IP matches pattern but then if its not but someone wants to use IP4 or IP6 then will have to make some changes again.

What I am thinking about is may be to add some flag which could say what IP protocol to use and have one to be by default.

Another idea is add ability instead of connectedHost to let user provide IPAddress object which already can be defined as either IPv4 or IPv6.

Also, from short test that I did, if I provide IP to be parsed in IPv4 format it will produce IPv4 object otherwise IPv6.

Here is example I tried:

var ipv6 = IPAddress.Parse("::ffff:127.0.0.1");var ipv4 = IPAddress.Parse("127.0.0.1");

Not sure if that could be helpful, but I will try to implement option where yo ucan provide IPAddress instead of string address soon as an alternative.

 

Thanks,

Oleg


Viewing all articles
Browse latest Browse all 1729

Trending Articles