Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I am using netcat to send some text from a linux tablet to my windows laptop.
All works perfect if I specify the ip address of the laptop.
Is it possible to specify the computer name instead and if so in what format. I have tried ron-PC and WORKGROUP\ron-PC but netcat says 'forward host lookup failed: Unknown host.
Before anyone suggests it, yes I know I can set a static ip address for the laptop but I have a lot of devices on the network that I will need to broadcast to so am trying to avoid setting static ips on them all. And I just want to see if the other way is possible now I have the bit between my teeth.
I'm using a perl script to system call netcat if anyone has any other suggestions like how to see what active computers are on the network, grab their ip addresses, chuck them in a string and use them in netcat (don't ask for much, do I)
If I do end up setting statics and listing them all for netcat can anyone tell me what command flag to use to prevent netcat hanging if one of the computers are off?
Thank you so much. I spent a couple of hours searching the net with all possible search terms that might lead me to an answer and despite all that time looking none of the results mentioned avahi. I googled it, read about it and inserted it just as you suggested and it worked. Thank you so much, I can now send caller id to all devices around the house.
Just one last question, will it degrade gracefully if ron-PC (for example) is off or will it hang?
Last edited by installer69; 05-05-2012 at 03:48 AM.
Reason: more info
It will probably hang for around 5 seconds waiting for a response.
At home, I entered the IP addresses I want assigned to my hosts in my router's IP/MAC clients' table. This way, I can use DHCP on the hosts but still have fixed addresses, and maintain an /etc/hosts file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.