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

查看:923
本文介绍了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).


  • 打开控制面板

  • 选择电话和调制解调器。如果它询问你关于位置的信息,请输入你需要的任何信息来使对话框开心(我认为它只需要你的区号,但可能没有,或者可能是其他东西 - 我们不会使用它也没关系)。

  • 告诉你要安装调制解调器,不要担心如果找不到 - 你将从列表中选择一个。

  • 单击添加按钮,告诉它不要自动检测一个

  • 在(标准调制解调器类型)下选择两台计算机之间的通信电缆

  • 告诉它使用什么串口

  • Open Control Panel
  • Select "Phone and Modem". If it asks you about location, type in whatever information you need to make that dialog box happy (I think it just needs your area code, but maybe not, or maybe other stuff - it doesn't matter we won't be using it).
  • Tell it you want to install a modem, and don't worry that if can't find one - you'll be selecting one from a list.
  • Click the "Add" button, and tell it not to bother detecting one automatically
  • Under "(Standard Modem Types)" select the "Communications cable between two computers"
  • tell it what serial port to use

现在你需要设置'网络用于PPP连接的适配器

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


  • 转到控制面板的网络和共享中心

  • 点击设置新的连接或网络

  • 选择设置拨号连接

  • 如果它问你什么调制解调器使用,选择两台计算机之间的通信电缆你刚刚设置的调制解调器(除非你的计算机上有一个真正的调制解调器,否则不应该这样)。

  • 给创建拨号连接对话框一个假的错误电话号码所以它会让你继续...并给它一个你喜欢的连接名称,而不是拨号连接

  • 点击连接它会尝试拨号。当然它会失败。点击无论如何设置连接

  • go to the "Network and Sharing Center" of Control Panel
  • Click on "Set up a new connection or network"
  • Select "Set up a dial-up connection"
  • If it asks you about what modem to use, select the "Communications cable between two computers modem" that you just set up (this shouldn't happen unless you have an actual modem in your computer).
  • Give the "Create a Dial-up Connection" dialog box a bogus phone number so it will let you continue... And give it a connection name that you like instead of "Dial-up Connection"
  • Click "Connect" and it'll try to dial. Of course it'll fail. Click "Set up the connection anyway"

现在在新网络适配器上配置各种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天全站免登陆