How to programmatically create or edit a dial-up incoming connection in Windows 10?

mj safian 0 Reputation points
2024-10-10T20:16:32.2733333+00:00

I'm trying to automate the setup of a dial-up connection between two systems in Windows 10. The client (caller) side is already handled; I've programmed the dialing process, phonebook entries, and modem initialization. On the server (callee) side, I need to automate the creation of a 'New Incoming Connection' using a modem, but I can't find any programmatic way to do this using commands or code.

I’ve tried using the rasdial and rasphone commands, but they only manage the caller side of the connection. I also know that the RRAS (Routing and Remote Access) service needs to be started but my main issue is configuring the incoming connection settings, such as selecting my modem and setting the IP settings. Regarding the netsh and netstat commands, I couldn't find any network interface related to incoming connections. I’m also unclear about what happens in the system when I configure an incoming connection. I was hoping to find a command to automate this process, but I haven’t found anything that works.

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,362 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jing Zhou 7,105 Reputation points Microsoft Vendor
    2024-10-14T01:13:49.8666667+00:00

    Hello,

     

    Thank you for posting in Q&A forum.

    You can use the RasDial.dll library which provides functions to create, edit, and dial-up incoming connections.

    You can do a coding process invoking this library and give a try.

     

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

     

    Best regards,

    Jill Zhou

     


    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.