Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] access lan servers? (Read 392 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] access lan servers?

hey! i have a raspberry pi  set up as a media server in my basement. on most devices, i can use an sftp or vnc client to access it via a WHATEVER.local address. however, i am unable to view this address on my artix system - tried tigervnc, avahi ssh and vnc, and even winscp with wine - but nothing works. everything just treats the domain as if it doesn't exist...

is there anything i need to enable/disable to access devices on my home network?
they think i'm stupid. little do they know, i am stupid!

Re: access lan servers?

Reply #1
I have a similar setup from yours, media server (just a small form computer with a raidZ array) which I access through sftp. I don't use x.local addresses though; instead I set my router with OpenWRT to always assign a fixed LAN address to my media server and use that numeric address 192.168.xxx.yyy

Re: access lan servers?

Reply #2
If the Pi is setup with a dynamic address and unless something is translating the the address (every time it may renew) then using some form of FQDN won't work.

Try to have the pi statically IP'd then add that (if you choose) to the /etc/hosts file on your Artix system in the format of:

xxx.xxx.xxx.xxx   hostname.my.lan     hostname

this way you would be able to access either via static IP or host name

You probably knew this already.
Supercalifragilisticexpialidocious

Re: access lan servers?

Reply #3
resolv.conf might be worth looking at too, you can add a domain name manually but it might get overwritten by whatever you have managing that, which can usually be configured to automatically add a line in there if you decide it is helpful to do so:
https://wiki.archlinux.org/title/Domain_name_resolution
IP addresses need to be compatible too I think, between the 2 machines, but I've only needed to do that for connecting to non-dhcp ethernet local networks though.
I can access other Artix machines connected to my router by dhcp wireless using sftp without any special config, so long as they both have the sshd service installed and enabled to run - these are separate packages for whatever init you use, e.g.  install the "openssh-openrc" package for openrc.

Re: access lan servers?

Reply #4
If the Pi is setup with a dynamic address and unless something is translating the the address (every time it may renew) then using some form of FQDN won't work.

Try to have the pi statically IP'd then add that (if you choose) to the /etc/hosts file on your Artix system in the format of:

xxx.xxx.xxx.xxx   hostname.my.lan     hostname

this way you would be able to access either via static IP or host name

You probably knew this already.

after seeing if i could connect to my pi over its ip address, i tried this, and it worked! thank you to everyone who has responded
they think i'm stupid. little do they know, i am stupid!

 

Re: [SOLVED] access lan servers?

Reply #5
I was struggling with this exact issue and thanks to you I solved it.