I am running a windows computer and a mac. when I run the windows computer, my node shows up in nembex, but when I run the mac, it doesn't. is it possible for me to run both computers at home and have both nodes show up on nembex.
I kind of want to turn my macbook air into a 24/7 node.
Well right away i think it's not the best idea to run a 24/7 node on a macbook. If you have no other use for it sell it and buy a couple of RaspPi 2s with that money
Are you saying if you run both at the same time only 1 shows up ?
Or are you saying if you run them 1 at a time the mac node doesn't show up ?
Since nembex discovers nodes by host (and your nodes would have the same host, at least with normal home set-up) i think it's possible that it'd only pick-up one but I'd have to look at the code again to be sure.
Are you saying if you run both at the same time only 1 shows up ?
Yes, if I run both, only ever the windows node shows up.
Or are you saying if you run them 1 at a time the mac node doesn't show up ?
Yes, even if I run the mac by itself, it won't even show up.
Are you saying if you run both at the same time only 1 shows up ?
Yes, if I run both, only ever the windows node shows up.
Or are you saying if you run them 1 at a time the mac node doesn't show up ?
Yes, even if I run the mac by itself, it won't even show up.
Okay so since even the macbook alone doesn't show up it's not the way nembex discovers nodes (at least not yet).
I assume you have a router ? Did you configer port-forwarding ? If so how ?
tbh I've never ran 2 machines with the same service on the same port behind a router. A "hard" port-forwarding rule will prob not work for that. Port triggering might.
I can't remember how I actually got the router to work. It took like 5 days of trying lots of different things. In English it would have been hard enough, but instead it was in Korean. I guess I'll leave it for now. I don't really want to play with the router.
The default port for NIS is 7890. If you run NIS with default settings on a machine 1, you have to forward port 7890 to the IP of that machine 1 in your router.
If you now want to run a second NIS, you have to use a different port, because all the incoming connections are always forwarded to machine 1. Unfortunately you can't change the port where NCC should connect in the GUI. It is possible to set that via a config file, but I think that leads into trouble (I have to check again to be sure).
Port triggering won't help either, because both nodes are talking to the network all the time.
okay. I have my answer. no two nodes on the same router.
okay. I have my answer. no two nodes on the same router. :D
Not until this issue is fixed: https://github.com/NewEconomyMovement/NemCommunityClient/issues/251
okay. I have my answer. no two nodes on the same router. :D
It is possible to run multiple nis nodes on same router...
Simply on every instance you must change nis port in config.properties, and on the router setup proper port forwarding/triggering whatever.
I was actually thinking it could be cool to run multiple cubies/raspis from single IP this way.
(ofc problem is, that once you got disconnected - by ISP that, all raspis will get disconnected).
@gimre: Yes, you can start a NIS on a custom port, but it is not possible to connect to it with NCC (port not changable via GUI; if you change it via config file you get errors).
@gimre: Yes, you can start a NIS on a custom port, but it is not possible to connect to it with NCC (port not changable via GUI; if you change it via config file you get errors).
I just tried this (via config file) and it seems to be working for me. I'm running NIS on port 8080 and NCC on the default port. In my ncc.cfg, I have this:
[code]
...
"remoteServer":{"protocol":"http","port":8080,"host":"localhost"},
...
[/code]
Also:
[code]
$ curl http://localhost:8080/chain/height
{"height":20300}
$ curl http://localhost:7890/chain/height
curl: (7) Failed to connect to localhost port 7890: Connection refused
[/code]
I just tried again, you are right.
It now works without problems. Last time I checked this with an earlier version of NIS/NCC, it didn't.
So now only the textbox for the port at NCC webinterface -> settings should be enabled.
I just tried again, you are right.
It now works without problems. Last time I checked this with an earlier version of NIS/NCC, it didn't.
So now only the textbox for the port at NCC webinterface -> settings should be enabled.
The only semi-sensible way to do it, is to add checkbox "use default value" (CHECKED by default), so only pro-users, will have to change it,
we don't want most of them to play with this settings.
Does that sounds ok to you?
Very good!
I'm a pro too (at messing it up) ;D