Bitcoin Forum

Bitcoin => Electrum => Topic started by: john1000444 on July 12, 2018, 02:13:51 PM



Title: Port Hopping with ElectrumClient-ElectrumX Server Connection
Post by: john1000444 on July 12, 2018, 02:13:51 PM
Hello all, I am making an electrum client and electrumx server for DeepOnion and have run into an issue where, when I try to connect to the server (running on an Ubuntu VPS), my client will occasionally flicker that it is connected and then go back to unconnected. Attached is a snap of what the connections are being logged as on the server and I am wondering if anyone would have an idea as to what the problem is (the whited out spaces are just my IP address).

Thanks!

https://imgur.com/a/h9FyHcA


Title: Re: Port Hopping with ElectrumClient-ElectrumX Server Connection
Post by: jackg on July 12, 2018, 04:28:09 PM
Looks fine to me, the port is supposed to change as far as I know.

You're hosting a server, you need to be able to accept multiple connections in parallel across your network, therefore your electrum server is assigning each electrum client it's own socket (IP:Port) in this case, the port is just changing so that stuff doesn't get confused.


Title: Re: Port Hopping with ElectrumClient-ElectrumX Server Connection
Post by: john1000444 on July 13, 2018, 04:08:05 PM
The problem is that this is all just one client trying to connect, so I guess the connection is cutting out and it keeps making a new socket assignment?


Title: Re: Port Hopping with ElectrumClient-ElectrumX Server Connection
Post by: jackg on July 13, 2018, 04:57:45 PM
The problem is that this is all just one client trying to connect, so I guess the connection is cutting out and it keeps making a new socket assignment?

I guess so. How did you get that information up from the command line (what command did you run)?