Bitcoin Forum
June 14, 2024, 10:26:02 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: way to find out what p2p port a network uses?  (Read 170 times)
caribbeanknight (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 15, 2019, 04:57:41 PM
 #1

Hi,
I have an internal IPv4 NAT'ed lan, but often have wallet syncing problems... Now you can "allow incoming connections" that you can tick in the options but nowhere is there talk about WHAT port...  Undecided
I've found out for example the BTC network uses port 8333 but every blockchain has their own port.. Is there a list maybe with what coin uses what port? Or any way to find out what port it uses?
Thanks in advance!!
BrewMaster
Legendary
*
Offline Offline

Activity: 2114
Merit: 1292


There is trouble abrewing


View Profile
May 15, 2019, 06:15:00 PM
Merited by ABCbits (1)
 #2

i don't think you can find that kind of list anywhere at all. your only option is to search each coin individually or ask on their topic or reddit sub if they have any and hope for a developer or someone familiar with the code to answer you.
the only list-like thing i can think of are the libraries that support multiple cryptocurrenices. for example nbitcoin has some altcoin versions and in those it includes ports each of them use. you can find its source code on github.

There is a FOMO brewing...
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
May 15, 2019, 06:15:48 PM
Merited by ABCbits (1)
 #3

I think this is possible, i'm pretty sure someone must've shared some in the past..

-- This link spreadsheet for example: Take a look. https://docs.google.com/spreadsheets/d/10gVdwVX6MURdxptZfjh393t0qCpCseXnf2zZdx9IKR0/edit#gid=0

I'm not sure how accurate it still is, but it might be of some use.

It looks pretty outdated though.  Sad


It doesn't include a lot of coins, in which case you either need to, as Brew suggested, look at their github, or try googling their port numbers..
Monero for example; https://monero.stackexchange.com/questions/604/what-ports-does-monero-use-rpc-p2p-etc

Artemis3
Legendary
*
Offline Offline

Activity: 2030
Merit: 1563


CLEAN non GPL infringing code made in Rust lang


View Profile WWW
May 15, 2019, 06:19:09 PM
Last edit: May 15, 2019, 09:57:25 PM by Artemis3
 #4

Hi,
I have an internal IPv4 NAT'ed lan, but often have wallet syncing problems... Now you can "allow incoming connections" that you can tick in the options but nowhere is there talk about WHAT port...  Undecided
I've found out for example the BTC network uses port 8333 but every blockchain has their own port.. Is there a list maybe with what coin uses what port? Or any way to find out what port it uses?
Thanks in advance!!

Every program uses its own port, so it depends. You CAN find out what port a program is using right now, but depending on program it might use a different port next time you open it. Some programs allow you to fix the port so it always uses the same, and many just have default ports defined you can change.

Main problem is, you didn't even tell us what program this is. But you should read the documentation of this program and it probably says it right there...

Netstat in a terminal can tell you current ports in use or open to be used.

██████
███████
███████
████████
BRAIINS OS+|AUTOTUNING
MINING FIRMWARE
|
Increase hashrate on your Bitcoin ASICs,
improve efficiency as much as 25%, and
get 0% pool fees on Braiins Pool
caribbeanknight (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 15, 2019, 08:37:14 PM
 #5

i'm not talking about a specific coin or program here... i know where to search (google, btctalk, discord, source, ...) but for most of the coins i mine (10-20 different) i have to setup a port forward rule for the incoming connections to work and it's those ports (for all those separate coins)... Found some of them out already but some i seem to be unable to find anywhere... :/
ones i found already:
btc -> 8333
mano -> 5982
btg -> 8338
rvn -> 8767
bsha3 -> 8335
xrd -> 3636
eth -> 30301
exp -> 42786
but the list goes on for multiple coins so those are the ports i am looking for... :/
Thirdspace
Hero Member
*****
Offline Offline

Activity: 1232
Merit: 738


Mixing reinvented for your privacy | chipmixer.com


View Profile
May 15, 2019, 11:56:30 PM
Merited by ABCbits (1)
 #6

Every program uses its own port, so it depends. You CAN find out what port a program is using right now, but depending on program it might use a different port next time you open it. Some programs allow you to fix the port so it always uses the same, and many just have default ports defined you can change.
OP talks about allowing incoming connections, so he's asking about a listening port
if listening port changes every time the wallet opened, how would others know it and connect

I have an internal IPv4 NAT'ed lan, but often have wallet syncing problems... Now you can "allow incoming connections" that you can tick in the options but nowhere is there talk about WHAT port...  Undecided
I think "allowing incoming connections" won't help your syncing problems
it enables other peers to connect and download block from you, sync from you if they have lower block heights
what kind of syncing problems you have? slow/throttled or totally not syncing?

Or any way to find out what port it uses?
here's one I know you can do from your gui wallet,
on your wallet's console, typing getpeerinfo will return a list of peers connected
on one of the peers, look for something like this "addr": "37.120.190.76:8555"
that's the IP of other peer and 8555 is the listening port (default for BTX)
on your side by default your wallet will use the same listening port number, if you choose to enable it

pooya87
Legendary
*
Offline Offline

Activity: 3486
Merit: 10639



View Profile
May 16, 2019, 03:44:17 AM
 #7

~
if listening port changes every time the wallet opened, how would others know it and connect

every time you start your "node" nobody knows you yet to connect to you, so you first have to announce your existence to the rest of the world you do that by sending them a message over the P2P network to the nodes that you know of (you might have connected to them previously or get the list from seed nodes or have them hardcoded in your node software). the message is called "Version message". inside that you include all the required information about yourself including the blockchain height you have, relay option, protocol version you support,... and your IP and Port. you can change  your port here to anything else and others can connect.
8333 is what we agreed on to all be on a same standard port but it is not enforced.
now that you've sent them your Version Message, they store it and send it to others too. so other nodes now know you are on IP:X and Port:Y and can find it that way.

here are 3 nodes with other ports (the numbers in link after the dash is their port):
https://bitnodes.earn.com/nodes/149.28.134.80-56792/
https://bitnodes.earn.com/nodes/54.199.214.32-48333/
https://bitnodes.earn.com/nodes/47.244.126.66-8999/

getpeerinfo for the last one for example will return 47.244.126.66:8999 while this is a bitcoin node it has 8999 as its port.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!