PPP Server on Windows

Viewed 10339

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.

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?

3 Answers

This is a workaround using VirtualBox. I can't figure out how to run PPP server natively on Win7.

pppd - Ubuntu ttyS0 - VirtualBox Port 1 - Win7 COM1 -- RS232 -- target's ppp client

  1. Prepare VirtualBox 5 and Ubuntu 16 as a guest OS on Win7
  2. Go to the VirtualBox Settings -> Serial Ports -> Port 1
    • Check : Enable Serial Port
    • Port Number : COM1 IRQ : 4 I/O Port : 0x3F8
    • Port Mode : Host Device
    • Check : Connect to existing pipe/socket
    • Path/Address : COM1
  3. Open a Ubuntu terminal

    • sudo apt-config install ppp
    • sudo apt-get install ppp
    • sudo stty -F /dev/ttyS0 raw
    • sudo stty -F /dev/ttyS0 -a
    • sudo pppd /dev/ttyS0 115200 192.168.17.1:192.168.17.2 proxyarp local noauth nodetach dump nocrtscts passive persist maxfail 0 holdoff 1

    pppd options in effect:
    nodetach # (from command line)
    holdoff 1 # (from command line)
    persist # (from command line)
    maxfail 0 # (from command line)
    dump # (from command line)
    noauth # (from command line)
    /dev/ttyS0 # (from command line)
    115200 # (from command line)
    lock # (from /etc/ppp/options)
    nocrtscts # (from command line)
    local # (from command line)
    asyncmap 0 # (from /etc/ppp/options)
    passive # (from command line)
    lcp-echo-failure 4 # (from /etc/ppp/options)
    lcp-echo-interval 30 # (from /etc/ppp/options)
    hide-password # (from /etc/ppp/options)
    proxyarp # (from command line)
    192.168.17.1:192.168.17.2 # (from command line)
    noipx # (from /etc/ppp/options)
    Using interface ppp0
    Connect: ppp0 <--> /dev/ttyS0
    Cannot determine ethernet address for proxy ARP
    local IP address 192.168.17.1
    remote IP address 192.168.17.2

Related