How to identify peers



  • If I'm running 2 wallets, how can I see if they have identified each other as peers? I.E, how do I know what each of my wallet's IP address is to the outside world? I would like to see wallet 1's IP in the wallet 2 peers list and visa versa but I'm not sure who is who.



  • @rds http://localhost:8125/burst?requestType=getMyInfo will get you the IP of the own wallet...

    http://localhost:8125/burst?requestType=getPeers&active=true will get you the list of all the active peers seen by your wallet...

    If you want to add a peer to the list, list it as a well known peer in the proprieties file of your loclwallet before initialize it...

    I'm not sure if this was what you were looking for but it looks to me it is... ;D



  • @gpedro said in How to identify peers:

    http://localhost:8125/burst?requestType=getMyInfo

    when running 2 wallets on different computers same interanet, does localhost only mean fro that computer or do we need to change something in the nxt.properties



  • @gpedro said in How to identify peers:

    @rds http://localhost:8125/burst?requestType=getMyInfo will get you the IP of the own wallet...

    http://localhost:8125/burst?requestType=getPeers&active=true will get you the list of all the active peers seen by your wallet...

    If you want to add a peer to the list, list it as a well known peer in the proprieties file of your loclwallet before initialize it...

    I'm not sure if this was what you were looking for but it looks to me it is... ;D

    When I click the "getmyinfo" link, I get 127.0.0.1. If I was one of your peers my address would not look like this to you. So I want to know what you would see?

    To be complete, I run 3 local wallets on the same computer in one state in the USA.

    I run 1 computer with 2 local wallets and another computer with 1 local wallet. Both of these computers are on the same internet connection. These 2 are in a different state in the US.

    I'm looking to find out what these six entities would look like to the outside world.



  • @rds Can you post what you get in here? I can't really test it with a localhost right now... :(
    You should be getting something like this (taken from https://wallet.burst-team.us:8127/burst?requestType=getMyInfo ):

    {
        "requestProcessingTime": 1,
        "host": "79.168.208.213",
        "address": "79.168.208.213"
    }
    

    So i think you should be getting something like:

    {
        "requestProcessingTime": 1,
        "host": "127.0.0.1",
        "address": YOUR IP ADDRESS IN HERE
    }
    

    @Burstde I am not sure but i think localhost is only for the computer (or VM) you are running it... I could be wrong but i think for it to be able to be seen by the IP address of the machine from external IPs you have to change something, although i am not sure what since i never tried it but provably @haitch can confirm it to you ;D


  • admin

    @gpedro As you said, https://wallet.burst-team.us:8127/burst?requestType=getMyInfo will give you your external address. using localhost:8125/burst?requestType=getMyInfo will give you your internal address - 127.0.0.1 is the machine itself.

    How 5 different wallets will act going out one interface is a good question. I'd expect any connections initiated by your wallets to each be dynamically NAT'd on individual ports allowing bi-directional communication. Without explicit inbound NAT's on your router incoming connection requests will be rejected.


  • admin

    @rds said in How to identify peers:

    @gpedro said in How to identify peers:

    @rds http://localhost:8125/burst?requestType=getMyInfo will get you the IP of the own wallet...

    http://localhost:8125/burst?requestType=getPeers&active=true will get you the list of all the active peers seen by your wallet...

    If you want to add a peer to the list, list it as a well known peer in the proprieties file of your loclwallet before initialize it...

    I'm not sure if this was what you were looking for but it looks to me it is... ;D

    When I click the "getmyinfo" link, I get 127.0.0.1. If I was one of your peers my address would not look like this to you. So I want to know what you would see?

    To be complete, I run 3 local wallets on the same computer in one state in the USA.

    I run 1 computer with 2 local wallets and another computer with 1 local wallet. Both of these computers are on the same internet connection. These 2 are in a different state in the US.

    I'm looking to find out what these six entities would look like to the outside world.

    did you read the note on the bottom of burstcoin.cc/node ... guess you can specify with

    nxt.myAddress=X.X.X.X
    

    what the outside would see, if ports are open.

    Edit: Moved to GeneralDiscussion ...


Log in to reply
 

Looks like your connection to Burst - Efficient HDD Mining was lost, please wait while we try to reconnect.