[SOLVED] Host Unreachable



  • Hi, I search a lot of info about that but all answers are the same, so I need if anyone could help me to understand what is happening (my doubts at the end).

    I've configured ports in router:

    External Port Start: 9981.
    External Port End: 9982.
    Protocol: TCP.
    WAN Interface: ppp0.1 (I don't know how important is this) .
    

    I start SIA and unlock my wallet, this is what happen:

    Synchronized: Ok.
    Checking Host Status (processing during 3 minutes aprox).
    Host Online (ok).
    I configure basic settings (Max duration, Collateral per TB per month...).
    Save settings.
    Announce.
    

    Transaction of -0,018Sc (Unconfirmed)
    Confirmed (5 minutes after)
    Host Online (ok)

    I can see my host in siahub.

    5-10 minutes later (aprox): Host Unrechable.

    Doubts about configuration:

    I've tried this with UpnP Enabled and Disabled: Same result.

    Should I open port 9980 in my router? All answers about that talk about it should not be exposed, but I don't understand if I need to open or not open like the other ones because 9980 is important. (Today I've tried to open 9980 and it doesn't works; in my router and firewall w10's rules).

    When I test my ports, allways appears “closed”, but they are open in my router, and in one test two ports were open and 5 minutes later were closed without modify anything.

    If I close SIA and open again, Do I click “Announce” again?

    And the last one: Siahub analysis of my host says that my wallet is outdated, but I'm using v1.3.0

    I'm using Windows10 and only in this computer Avast free edition.

    Thanks a lot.



  • Try http://www.portchecktool.com/ if it can get through on the two ports above. If not, then your networking is the problem, and you need to use Google or a friend to fix it.

    If yes, then Sia should automatically pick up and be online in a few minutes.

    Do never expose port 9980, this would give all the control to foreigners on the internet, including sending all your money (SC) to wherever they like.



  • Thanks maol,

    I've tried a lot of options since my post before to answer, but doesn't work. Router firewall, windows firewall, antivirus, updates, aplications/software, router rules, ipv6 ports, ipv4 ports, resets, Google and more google... I think only need to test my router and pc with the gravity through my window.

    Well, I wait for next Sia's version to host files or anyone who can help me.

    Thanks a lot.



  • Hi, I think I've solved this problem. It's working and it doesn't show any error message (read at the end).

    My host appears in Siahub and all is green.

    Requirements:

    Windows 10.
    When I installed Sia, I allowed it to access to internet.
    I don't open any rule in windows 10 firewall, no necessary.
    I don't open any ports directly in my router, no necessary.
    No exceptions in antivirus, no necessary.
    I'm using services like no-IP, where an IP like xx.xx.xxx.xxx could be domainnoip.ddns.net (read about that in: https://www.noip.com/), it's optional.
    

    Go to general folder that contains these folders:

    consensus/
    gateway/
    host/
    renter/
    transactionpool/
    wallet/
    

    I've opened this file with notepad: host/host.json

    In first lines after "announced": true there is "autoaddress": "xx.xx.xxx.xxx:9982"
    I've replaced xx.xx.xxx.xxx:9982 for domainnoip.ddns.net:9982

    At the end of host.json, after to “maxrevisematchsize” there is “netadress”: “xx.xx.xxx.xxx:9982”.

    I've replaced xx.xx.xxx.xxx:9982 for domainnoip.ddns.net:9982

    I've opened this file with notepad: renter/hostdb.json

    In first lines after "maxrevisebatchsize" there is "netaddress": "xx.xx.xxx.xxx:9982"

    I've replaced xx.xx.xxx.xxx:9982 for "domainnoip.ddns.net:9982

    If you don't use services like no-IP, put your IP, here a link: https://www.myip.com/

    Be carefull if:

    If You use no-Ip you need to update your ip every 31 days if choose free version.

    If You don't use services like no-Ip and you use a dynamic IP, control when it changes. Something like reset your router or turn off can change your Ip and you will need to modify again your .json files.

    At the end:

    Open Sia and wait to syncronize.
    Open your wallet with your seed.
    Look “Hosting” section and you can see two options if all is right:
    Yellow: Host inactive.
    Green: Host online.
    

    If Host is inactive, only need to follow Sia instructions about “how to start hosting".

    If Host is online, click to Announce and wait 5-10 minutes to look your pc in siahub.

    Testing ports:

    After all and Sia running, You can enter to your router and go to ports section. You be able to see that Sia Host and Sia RPC rules are opening 9981:9982 ports. But if you close Sia and enter to your router, this ports will be closed.

    Also you can use https://www.yougetsignal.com when Sia is running, and ports will be opened, but if you close Sia and test your ports, ports will be closed.

    All is authomatic, for that, its not necessary to create windows firewalls rules or open ports in your router.

    NOTE:

    Modify json files under your responsibility and backup before to modify them.
    Use other files to test it. I use other wallet with 1400Sc, other computer and other Sia-Ui to test it.

    Maybe appears an error with only a word in uppercase letters when click “Announce”. It doesn't happen if you modify two files. In my case, this error appears because only modify one json file.

    I'm not a programmer, only a beginner that try to learn and test this app.

    If any programmer can see any error or vulnerability in my explanation, please answer.

    Thanks.



  • @Klio you can do the same also with the Sia CLI, instead of having to edit files. That way it's guaranteed to be consistent across all relevant config files & options. Glad to hear you got it working, even though you took the hardest way possible :)

    siac host config netaddress domainnoip.ddns.net:9982



  • Hi Klio, I have the same issue as you except that I am using a NAS Synology!
    I've tried your method but after 10 minutes, the 'Host Online' will change to 'Host Inactive'

    my synology is synced - yes!
    I have 2000 SC in the wallet - yes!
    Docker container running - yes!
    I have add this command in terminal : host config netaddress abcd.dyndns.org:9982 - yes!
    I have announced 5 times for my DNS address below - yes!
    I've port forward to a DNS named abcd.dyndns.org:9982 (for example) in which I'm able to see the following message :-

    {"message":"Browser access disabled due to security vulnerability. Use Sia-UI or siac."}

    Everything is in place but how come I am still getting 'Host Inactive'?
    I've also tried MAOL's command, still the same issue. Any more commands that can be input?



  • @kilobytez HI, I have same issue. Exactly the same. Did you sort it out eventually?



  • @maol HI,
    Can you elaborate a little on your answer?where is the Sia Cli?


Log in to reply