How to get TcpServer ConnectingString ? #10926
-
var reelsTcpServer = builder.AddProject<OnlySwipe_Reels_TcpServer>("Reels-TcpServer");
engagementApi
.WaitFor(reelsTcpServer)
.WithReference(reelsTcpServer); //Reels-TcpServer
_listener = new TcpListener(IPAddress.Any, _port); it is possible to get TCP-Server connectionString using project name same like "config.getConnectingString("Postgres")" something like this ? Tcp-Server is a console app. i know about addConnectingString method, i am just asking they have any thing same like default "config.getConnectingString("Postgres")" or userApi.GetEndpoint("http") like this for tpc. |
Beta Was this translation helpful? Give feedback.
Answered by
davidfowl
Aug 12, 2025
Replies: 1 comment 12 replies
-
Did you read this https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/networking-overview? |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You’re responsible for translating the host name into an ip address in your code. You can do that by using a dns client (to resolve host addresses) or by using some other logic (like hard coding the localhost to ip address mapping). This is what an http client does