asticode / go-astilectron

Build cross platform GUI apps with GO and HTML/JS/CSS (powered by Electron)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to define TCP Addr

ThePutzy opened this issue · comments

Hello,

it is possible to define the TcpPort in astilectron options.
Is it possible to define the IP address too?

i want to use two single-board-computer and one has the "backend" and the other has the "frontend" and if i can define the tcp ip and tcp port i think this can be possible. Or am I wrong?

I think you're better off using go-astilectron on your "frontend" machine (without specifying a tcp port or ip for the internal go-astilectron communications), serving a custom server on your "backend" machine and loading this custom URL in go-astilectron instead of loading static files