Page 2 of 2

Re: Wrong client IP address

Posted: Thu Feb 18, 2021 12:18 pm
by Mikas
I was using "wolwake @IP@" in my config, now it's not passing correct IP anymore

Re: Wrong client IP address

Posted: Thu Feb 18, 2021 12:40 pm
by timurhai
Nothing changed on this theme on latest updated, and for a very long time.
Your network setup makes server to thing that all renders are from the same IP.
(i bet that it is an IP of some router that renders connects to server from)

As far as i understand, you have some custom tool to wake renders.
And it gets a render IP from server. How?
You also can get full info with all IPs, how?
If it is a render item double click from afwath, you can launch afwatch from console, and see how it gets full info.

btw
you can wake render using mac address not ip - use broadcast message.

Re: Wrong client IP address

Posted: Thu Feb 18, 2021 3:56 pm
by Mikas
Thanks Timurhai.

All the rendernodes are on the cloud, probably cloud provider changed something and as coincidence I saw it after upgrade. Sorry about that.

To answer your questions:

1. I use custom tool that wakes nodes based on IP addresses, as I don't have their physical addresses
2. I use config.json option:

Code: Select all

"af_render_cmd_wolwake":"wolwake @IP@" 
- this is where I send nodes IP
3. I get full info from Afwatcher right click on the node and pressing Show Info

I have one node running on the same node as Afserver, which wakes render nodes when needed

Re: Wrong client IP address

Posted: Thu Feb 18, 2021 4:00 pm
by Mikas
Basically if I send that command

Code: Select all

wolwake some_IP_address
manually - it still works. So my question is - how can I get that IP from the network card rather then from socket? Is it possible?

Re: Wrong client IP address

Posted: Fri Feb 19, 2021 8:17 am
by timurhai
Yes. You can launch afwatch from a console, and see how it gets full info.
In a console mode, afwatch prints in stdout messages that it sends to server.
This is the way to learn Afanasy JSON protocol.

Re: Wrong client IP address

Posted: Fri Feb 19, 2021 10:41 am
by Mikas
Cool!

Thanks a lot Timurhai, your help much appreciated!

Re: Wrong client IP address

Posted: Fri Feb 19, 2021 2:53 pm
by Mikas
I ran afwatch from command prompt, but it doesn't provide any output there:
Screenshot 2021-02-19 165320.png
Screenshot 2021-02-19 165320.png (156.47 KiB) Viewed 5673 times
Any options I need to turn on while running it?

Re: Wrong client IP address

Posted: Fri Feb 19, 2021 9:24 pm
by timurhai
Sorry, it is only for Linux.
Windows version drops console.

Re: Wrong client IP address

Posted: Fri Feb 19, 2021 9:25 pm
by timurhai
Also you can look at web gui network logs. (left-bottom button with an arrow)

Re: Wrong client IP address

Posted: Sun Feb 21, 2021 12:47 pm
by Mikas
Thanks Timur!