Click here to Skip to main content
15,306,142 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Suppose I have two PCs in LAN
Or MAN. What would be the connecting string
Please describe elaborately..,.

What I have tried:

Nothing don't know just thinking
Posted
Updated 12-Feb-21 20:24pm
v2
Comments
RickZeeland 13-Feb-21 2:17am
   
Do you mean to connect to a database? if so what database are you using?
Member 12712527 13-Feb-21 2:24am
   
Custom built database made by me
Richard MacCutchan 13-Feb-21 4:23am
   
Then it would need a custom connection string designed by you also.
Dave Kreskowiak 13-Feb-21 11:04am
   
Sigh....he was referring to the database engine you're connecting to. ConnectionString content is different for every engine.

1 solution

If you want to connect via the IP address for e.g. a Client-Server application, see:
TcpClient Class (System.Net.Sockets) | Microsoft Docs[^]
Socket Class (System.Net.Sockets) | Microsoft Docs[^]

Also see this rather old CodeProject article: Introduction to TCP client server in C#[^]

Here is a more modern example: High Performance TCP Client Server using TCPListener and TCPClient in .NET Standard[^]
   
v3
Comments
Member 12712527 13-Feb-21 2:27am
   
Ok

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900