1
1
I use an Ubuntu system and frequently connect to my parent's Windows system on the local network. But, using DHCP, the computers IP address are always different, making it a chore to find what IP address the machines are before connecting to them.
Is there a way to let the systems ask for a permanent IP address from the DHCP server?
Do not connect to addresses; connect to names. – user1686 – 2011-11-26T13:26:23.993
@grawity How would that work? If, for example, I had a web UI running on port 8080 of a computer named Example-PC, what do I write in my browser? – Oxwivi – 2011-11-26T13:59:41.107
http://Example-PC:8080/
– user1686 – 2011-11-26T14:13:03.283@grawity Doesn't work. – Oxwivi – 2011-11-26T14:58:49.973
@grawity It did work, when I wrote the name of my Ubuntu system when using it. But it did not resolve the Windows system. – Oxwivi – 2011-11-26T15:46:48.923
I had forgotten the "Ubuntu" part, sorry. Install nss_wins on Ubuntu, that should allow it to use the Windows name service. I had posted more details in an earlier question on local name resolution.
– user1686 – 2011-11-26T15:51:47.590@grawity Not sure what package provides that, but I probably already have that, since I have
/etc/nsswitch.conf
. Do I need to enable anything in it? And you might want to hammer out an answer. – Oxwivi – 2011-11-26T16:07:29.897nss_wins might be part of the Samba package on Ubuntu (which makes sense, since it is part of Samba, but I remember Debian packaging it separately). The presence of
nsswitch.conf
means nothing; it is a generic "name service switch" config file. To enable nss_wins and access Windows from Ubuntu, you would simply edit the "hosts" line in this file - I think it will be done automatically. (To access your Ubuntu from Windows, you'll need the "samba" service running; again, automatic.) – user1686 – 2011-11-26T16:22:17.530In installed Samba,
nmbd
started running, except that the computer names are still not resolved. Wonder if I should reboot. – Oxwivi – 2011-11-26T16:35:48.000@grawity It's working now, please post an answer, so I can select it as the solution. – Oxwivi – 2011-11-26T17:21:52.790
@grawity Or maybe not, sometimes it works, sometimes not. :( – Oxwivi – 2011-11-26T19:08:00.687