无头 Linux -> 向 Windows 工作站广播 IP?

发布于 2024-07-15 01:56:28 字数 306 浏览 2 评论 0原文

我想向 SOHO 用户出售无头 Linux 服务器。 通常,他们将拥有一个支持 DHCP 的 ADSL 调制解调器兼交换机,用于连接工作站和服务器。

为了只显示服务器,我需要找到一种方法,将服务器插入交换机以从调制解调器获取 IP 地址,然后让服务器广播其地址,以便我可以使用 Putty 连接到它从工作站。

我考虑过使用 Samba 使用 Messenger 服务广播消息,但除非我弄错了,否则只有当两个热点配置为使用相同的工作组/域时,这才有效。

您知道如何从工作站获取服务器的IP地址吗?

谢谢您的任何提示。

I'd like to sell headless Linux servers to SOHO users. Typically, they'll have a DHCP-capable ADSL modem cum switch to which they'll connect their workstation and the server.

In order to just show up with the server, I need to find a way to just plug the server into the switch to get an IP address from the modem, and then have the server broadcast its adresse so I can then connect to it with Putty from the workstation.

I thought about using Samba to broadcast a message using the Messenger Service, but unless I'm mistaken, this only works if the two hots are configured to use the same workgroup/domain.

Do you know of way to get the server's IP address from the workstation?

Thank you for any tip.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

做个少女永远怀春 2024-07-22 01:56:29

我不知道有什么好的解决办法。

某些 DHCP 服务器会注册您在请求中发送的名称 - 然后在您的设置说明中给出该名称。 但我怀疑家庭用户 DSL 路由器不属于这一类。

也许您可以在 CD 上提供一个工具,用于执行 arp 请求以获取 IP 地址? (鉴于包装盒上印有 MAC 地址)

I don't know of any good solutions.

Some DHCP servers will register the name you send in the request - then give that name in your setup instructions. But I suspect home user DSL routers aren't in that category.

Maybe you could ship a tool on CD that does arp requests to get the IP address? (Given the MAC address printed on the box)

若有似无的小暗淡 2024-07-22 01:56:29

在任意选择的 UDP 端口上定期广播数据包,并构建一些客户端软件来侦听这些数据包。

Broadcast packets periodically on some arbitrarily chosen UDP port, and build some client software to listen for those packets.

风柔一江水 2024-07-22 01:56:28

看看 UPnP 和 Zeroconf 服务,例如 Apple 的 Bonjour

Take a look at UPnP and zeroconf services like Apple's Bonjour.

最终幸福 2024-07-22 01:56:28

我可能建议对交换机和调制解调器使用常规方法,因为您将设备视为设备,即设置默认 IP 192.168.0.1,然后连接到该 IP,然后将设备配置到本地基础设施中。

I'd probably suggest using the normal approach for switches and modems as you are treating your device as an appliance, i.e. set a default IP 192.168.0.1, and connect to that to then configure the device into the local infrastructure.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文