Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
kurdish_boy #1
Member for 2 weeks · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Connecting to Custom IP and Port Issue (IPv6 Problem i think)
Hi
i want to connect to a custom ip and port , also i have to connect my proxy first to have access to server
but in code i have this error :

DotNetty.Transport.Channels.ConnectException: 'LogError connecting to 10.1.2.11:5222'
SocketException: No connection could be made because the target machine actively refused it

and also in proxifier :
vnext_test.exe - [::ffff:10.1.2.11]:5222 (IPv6) error : Could not connect through proxy 85.9.79.240:4957 - Proxy server cannot establish a connection with the target - general SOCKS server failure.

i think this ipv6 adr : ::ffff:10.1.2.11
is wrong , i checked it in online ipv4 to ipv6 tools and this was result :

IPv4 : 10.1.2.11
IPv6 : 0:0:0:0:0:FFFF:0A01:020B

please help me to work it out , im going out of my mind Guys :D

also here is my c# code :

  1. var xmppClient = new Matrix.XmppClient
  2.             {
  3.                 Username = "admin",
  4.                 Password = "1234",
  5.                 XmppDomain = "enigma-im.ir",
  6.                 HostnameResolver = new StaticNameResolver(IPAddress.Parse("10.1.2.11"), 5222)
  7.             };
  8. await xmppClient.ConnectAsync();

i also tested it with your WPF example client based on MatriX vNext app , in visual studio , and get same error

also i can connect to the server by Psi+ without any problem with connected proxy

Help me please Thank you
This post was edited 3 times, last on 2018-11-26, 17:48 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
  • what you you mean by connect my proxy first?
  • Can you attach screenshots which show how Psi is setup?
  • Is the server public? Then I can try to connect to it
Avatar
kurdish_boy #3
Member for 2 weeks · 4 posts
Group memberships: Members
Show profile · Link to this post
i mean i connect to a proxy by proxifier program , server is not public , i have to use this proxy to have access to it
i attached screenshots
The author has attached one file to this post:
1.PNG 388.6 kBytes
You have no permission to open this file.
Avatar
Alex #4
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
in your PSI screenshot I see no proxy settings. It sais connection proxy: NONE

MatriX vNext does not have SOCKS or HTTP proxy support. So when you need to connect through a SOCKS or HTTP proxy then this does not work with MatriX vNext.
My undertanding is that Proxifier here comes in. I have not worked with this tool myself. But if it works for Psi, then I see no reason why it will not work for MatriX as well
Avatar
kurdish_boy #5
Member for 2 weeks · 4 posts
Group memberships: Members
Show profile · Link to this post
yes  , exactly
i dont understand where is the problem
so what should i do ?
Avatar
Alex #6
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
your code which configures MatriX matches exactly with the screenshots in Psi. I have no idea why Psi would work, and MatriX not.
If you think its an IPv4/IPv6 issue then you can return a v6 address in your StaticNameResolver.

The error message you posted is on the proxy server, so I don't see how this is related to MatriX. Maybe you configured it wrong.
vnext_test.exe - [::ffff:10.1.2.11]:5222 (IPv6) error : Could not connect through proxy 85.9.79.240:4957 - Proxy server cannot establish a connection with the target - general SOCKS server failure.
Avatar
kurdish_boy #7
Member for 2 weeks · 4 posts
Group memberships: Members
Show profile · Link to this post
how can i return a v6 address in my StaticNameResolver ?
Avatar
Alex #8
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
see: https://docs.microsoft.com/en-us/dotnet/api/syst…?view=n…
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS