Windows 上的 PPP 服务器 [英] PPP Server on Windows

查看:45
本文介绍了Windows 上的 PPP 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个解决方案,其中一些硬件连接到 Win 7 机器上的 COM 端口,并与我们的 Java 应用程序交互.硬件希望使用 PPP 服务器通过 TCP/IP 透明连接到其他服务器.

We have a solution where some hardware connects to a COM port on a Win 7 machine, and interacts with our Java app. The hardware wants to use a PPP Server to transparently connect to an other server over TCP/IP.

有没有人有关于如何做到这一点的建议?从 Java 应用程序启动 OS 本机 PPP 服务器,并连接到 COM 端口?这是怎么做的?

Does anyone have a suggestion on how to do this? Start an OS native PPP Server from the Java app, with a connection to the COM port? How is this done?

推荐答案

你可能会惊讶地发现 Win7 仍然原生支持 PPP.

You may be surprised to find that Win7 still supports PPP natively.

按照这些步骤(或类似的步骤),您应该基本可以开始了.我实际上没有执行过 PPP 连接,因为可能是 Win98,也可能是 Win2k,但是这些步骤看起来与他们支持的步骤非常相似.这并不简单,但是这些应该可以让您完成 80% 或 90% 的工作(最后 10-20% 将是正确配置串行连接的正常情况——串行通信涉及的选项太多,PPP 使其在第一次连接尝试时正确运行).

Follow these steps (or something like them) and you should be mostly good to go. I haven't actually performed a PPP connection since probably Win98, maybe Win2k, but the steps look to be pretty similar to what they were back them. It's not straightforward, but these should get you 80 or 90% of the way (the last 10-20% will be the normal hair-pulling irritations of getting the serial connection properly configured - there are way too many options involved in serial communications and PPP for it to go right on the first connection attempt).

  • 打开控制面板
  • 选择电话和调制解调器".如果它询问您位置,请输入您需要的任何信息以使该对话框满意(我认为它只需要您的区号,但也许不需要,或者其他东西 - 没关系我们不会使用它).
  • 告诉它您想安装调制解调器,如果找不到,请不要担心 - 您将从列表中选择一个.
  • 点击添加"按钮,并告诉它不要自动检测一个
  • 在(标准调制解调器类型)"下选择两台计算机之间的通信电缆"
  • 告诉它使用什么串口

现在您需要为 PPP 连接设置网络适配器"

Now you need to set up the 'network adapter' for the PPP connection

  • 进入控制面板的网络和共享中心"
  • 点击设置新的连接或网络"
  • 选择设置拨号连接"
  • 如果它询问您要使用哪种调制解调器,请选择您刚刚设置的两台计算机调制解调器之间的通信电缆"(除非您的计算机中有实际的调制解调器,否则不会发生这种情况).
  • 为创建拨号连接"对话框提供一个虚假的电话号码,以便您继续...并为其指定一个您喜欢的连接名称,而不是拨号连接"
  • 点击连接",它会尝试拨号.当然会失败.点击仍然设置连接"

现在在新的网络适配器上配置各种 PPP 设置:

Now configure various PPP settings on the new network adapter:

  • 点击网络和共享中心"控制面板中的更改适配器设置"链接
  • 右键单击您刚刚创建的网络适配器(拨号连接"或您给它起的任何名称),然后选择属性"
  • 配置两台计算机之间的通信电缆"(主要是让您设置速度).查看其他选项卡,了解您可能需要控制的各种其他选项.不要忘记在网络"选项卡上配置您可能需要的 TCP/IPv4 属性.如果您使用的是 IPv6,请确保也配置了这些内容.

一旦硬件设备与 Win7 COM 端口建立了 PPP 连接,Java 应用程序就应该能够通过 PPP 链接进行通信,就像它是一个普通的网络适配器一样.祝你好运!

Once the hardware device establishes a PPP connection to the Win7 COM port, the Java application should be able to communicate over the PPP link as if it were a regular network adapter. Good Luck!

这篇关于Windows 上的 PPP 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆