Hey there, I'm currently having an issue with a node I made giving a red heart on computers connected to the same network as the machine ptero is running on. From looking at previous posts in this chat I'm assuming it's to do with editing the /etc/hosts file, as it shows up green when connecting to the panel from outside the local network, I'm just not really sure what exactly I'm supposed to change in that file to fix it.
#Not sure what I'm meant to change in the /etc/hosts file (assuming it's the issue im having)
28 messages · Page 1 of 1 (latest)
Apologies if this is some obvious answer, first time I've tried properly setting up ptero on my own machine.
follow this: #1374678633934884936 message
I took a look and I'm still not really sure what exactly in the file I'm meant to be changing, my current file is just ```127.0.0.1 localhost
127.0.1.1 pterodactyl
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Am I removing the top two lines and replacing them with 192.168.1.xx panel.mydomain.com and node.mydomain.com respectively? That's what I'm stuck on atm
this is your file at C:\Windows\System32\drivers\etc\hosts ?
I'm on ubuntu server so its in my /etc/hosts directory
not directory sorry thats the hosts file in the /etc directory
yeah ok. You just add the following "Your server local IP" "panel.mydomain.com" "node1.mydomain.com"
under the pterodactyl
ok so it'd look like this then?
127.0.1.1 pterodactyl
192.168.1.67 panel.domain.net
192.168.1.67 node.domain.net
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters```
There were too many logs to read @gleaming grail. Please post 5 or less.
yeah if thats the ip and domain then yes
obviously replacing domain with my actual domain and all that
alright, once ive done that is there anything i need to restart or turn off and on to get it working?
you can also just add them back to back so 192.168.1.67 panel.domain.net node.domain.net
oh ok nice
alright file edited, its now ```127.0.0.1 localhost
127.0.0.1 pterodactyl
192.168.1.67 panel.glasscrab.net main.glasscrab.net
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
and considering glasscrab.net is my domain and main is the name of my node that should be good right? anything else im missing before the heart shows up green?
There were too many logs to read @gleaming grail. Please post 5 or less.
yeah
refreshing the page the heart still shows red, do i need to restart the machine or something?
but again where did you change this file. You dont have to change it on the server but on your own pc
OH I've been misreading all this then, I've been editing the file on my server, not on my pc
yeah it needs to be edited on your pc
and just to confirm it does not need to change on the server itself?
nope