#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)

gleaming grail
#

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.

#

Apologies if this is some obvious answer, first time I've tried properly setting up ptero on my own machine.

silent orbit
gleaming grail
silent orbit
#

this is your file at C:\Windows\System32\drivers\etc\hosts ?

gleaming grail
#

I'm on ubuntu server so its in my /etc/hosts directory

#

not directory sorry thats the hosts file in the /etc directory

silent orbit
#

under the pterodactyl

gleaming grail
floral orioleBOT
#

There were too many logs to read @gleaming grail. Please post 5 or less.

silent orbit
#

yeah if thats the ip and domain then yes

gleaming grail
#

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?

silent orbit
gleaming grail
#

oh ok nice

gleaming grail
# silent orbit you can also just add them back to back so 192.168.1.67 panel.domain.net node.do...

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?
floral orioleBOT
#

There were too many logs to read @gleaming grail. Please post 5 or less.

silent orbit
#

yeah

gleaming grail
#

refreshing the page the heart still shows red, do i need to restart the machine or something?

silent orbit
#

but again where did you change this file. You dont have to change it on the server but on your own pc

gleaming grail
#

OH I've been misreading all this then, I've been editing the file on my server, not on my pc

silent orbit
#

yeah it needs to be edited on your pc

gleaming grail
#

and just to confirm it does not need to change on the server itself?

silent orbit
#

nope

gleaming grail
#

ok i just edited it on my actual computer, do i have to restart my browser or my pc now or something?

#

nevermind got it working, thank you so much for the help, youve been very patient with me fixing this