Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PPP Server on Windows

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?

like image 428
Marius Reppe Avatar asked Aug 10 '11 13:08

Marius Reppe


People also ask

What are PPP servers?

Point-to-Point Protocol (PPP) refers to a suite of computer communication protocols that provide a standard way to transport multiprotocol data over point-to-point links.

What does PPP not connected mean?

Your modem establishes a PPP connection and then over this connection your Ethernet packets flow. It sounds like you're disconnecting from your ISP at regular intervals. It could be any number of things causing you to lose your connection. You may have poor signal to the ISP end point and the connection is timing out.


1 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

like image 55
JaeMann Yeh Avatar answered Sep 20 '22 20:09

JaeMann Yeh