Find Jobs
Hire Freelancers

Modify code so that it updates the IP address across multiple config files in different folders in C#

$10-30 USD

Slutfört
Publicerad över fyra år sedan

$10-30 USD

Betalning vid leverans
I have a software that upon installation asks for the IP address of my server and stores that address into multiple config files in different folders. This code that I have updates the config file's endpoint address inside. The code that I have commented out is the code written out for the task. I was trying to create an [login to view URL] to see where the software was installed and and run through the xml configs inside that directory but I'm not familiar with the [login to view URL] Method. 1) Modify the code to look where the software has been installed and then run the code 2) Modify this code so that it updates all the IP addresses within ALL the config files inside different folders where the software was installed. **ConfigFile** using System; using [login to view URL]; using [login to view URL]; using [login to view URL]; using [login to view URL]; using [login to view URL]; using [login to view URL]; using [login to view URL]; using [login to view URL]; using [login to view URL]; using [login to view URL]; namespace ConfigTool { class Class1 { // foreach ([login to view URL] folder_type in [login to view URL](typeof([login to view URL]))) // { // DescribeFolder(folder_type); // } //[login to view URL](0, 0); //const string FILENAME = [login to view URL](Environment.SpecialFolder.); const string FILENAME = @"C:\Program Files (x86)\******\***\***\*****\*****.****.****.[login to view URL]"; public static IPAddress GetIPAddress(string hostName) { Ping ping = new Ping(); var replay = [login to view URL](hostName); if ([login to view URL] == [login to view URL]) { return [login to view URL]; } return null; } static void Main(string[] args) { XDocument doc = [login to view URL](FILENAME); List<XElement> endpoints = [login to view URL]("endpoint").ToList(); foreach (var endpoint in endpoints ) { string address = (string)[login to view URL]("address"); string newIp = "[login to view URL]"; string pattern = "//[^:]+"; address = [login to view URL](address, pattern, "//" + newIp); [login to view URL]("address").SetValue(address); } [login to view URL](FILENAME); } } } **XMLExample** <endpoint name="***Local" address="[login to view URL]://[login to view URL]" binding="netTcpBinding" contract="****.[login to view URL]" bindingConfiguration="TcpCustomSecurity" behaviorConfiguration="CustomValidator"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint name="***Local" address="[login to view URL]://[login to view URL]" binding="netTcpBinding" contract="****.[login to view URL]" bindingConfiguration="TcpCustomSecurity" behaviorConfiguration="CustomValidator"> <identity> <dns value="*******" /> </identity> </endpoint> <endpoint name="****" address="[login to view URL]://[login to view URL]" binding="netTcpBinding" contract="****.[login to view URL]" bindingConfiguration="TcpCustomSecurity" behaviorConfiguration="CustomValidator"> <identity> <dns value="localhost" /> </identity> </endpoint>
Project ID: 22877133

Om projektet

13 anbud
Distansprojekt
Senaste aktivitet fyra år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd avatar
Language : ----- C++, C#, Python, Qt, Matlab, Java, VB----- Skill : High and low desktop application Project reversing, Multi-threading, System management Machine learning, Deep learning Image processing(OpenCV, OpenGL...) Video codec processing(H264, Mpeg4...) Database(MySQL, Access, Excel, MSSQL, Oracle...) Network communication(tcp/ip, udp, rtsp, http...) Platform: Windows, Linux, Ubuntu, Unix, MacOS
$30 USD Om 7 dagar
5,0 (9 omdömen)
4,4
4,4
13 frilansar lägger i genomsnitt anbud på $31 USD för detta uppdrag
Använd avatar
Hi, I have 6 years of experience with Microsoft .NET (C#). Please take a look at my profile and message me. I'm waiting for your response. Thank You!
$20 USD Om 1 dag
5,0 (137 omdömen)
7,1
7,1
Använd avatar
Dear Prospect Hiring Manager, After a full understanding of your project description, I can say I could help you with strong interests and desire. I am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have the skills you've mentioned Some skills are : HTML / CSS / JavaScript / Jquery / Asp.Net MVC / Core / Web APIs / Microsoft Azure If you allow me to help you, I'd be honored, and I'll put all my energy and time on this project from now. I hope to hear from you soon. Thank You
$50 USD Om 2 dagar
5,0 (15 omdömen)
5,3
5,3
Använd avatar
Hello. i am a c#.net developer with 8 years experience. specialized in desktop applications. I went through the code, can build a solution for this... hope to hear from u. Thanks.
$20 USD Om 7 dagar
5,0 (32 omdömen)
4,9
4,9
Använd avatar
I can make this happen for you. To be clear are you wanting to modify the files that are all in the directory where the application is located and all child directories?
$20 USD Om 1 dag
5,0 (61 omdömen)
4,4
4,4
Använd avatar
Hi, I am a c# developer with 4+ years of experience, I have strong experience working with file and folders in c# I can do this task with easy please send me a message to discuss details. Best regards.
$30 USD Om 4 dagar
5,0 (13 omdömen)
3,8
3,8
Använd avatar
Hey, how are you dear, need .net development we will provide you .net/c# development we have a large team to develop any kind of desktop or web app in .net with the responsive mobile-friendly interface as well ping me to discuss more on your project thanks a lot. we can also develop Node js/.Net Core application as well like MERN or MEAN App. #.Net Core #C# #.Net #MVC #Angular #Winform #Webform #Angular js #React js #Node js #Java Script
$20 USD Om 7 dagar
5,0 (2 omdömen)
2,2
2,2
Använd avatar
Hello. I am the C# and .Net expert. I've solid experience in developing/reversing/debugging C# apps. I'm interested in your project, please let me know your details or we can discuss more closely. Thanks.
$50 USD Om 7 dagar
5,0 (2 omdömen)
1,5
1,5
Använd avatar
⭐⭐⭐⭐⭐ Hi ! I'm a C# Expert. It's piece of cake. What is the new IP? Text me on chat, pls. ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐
$19 USD Om 1 dag
5,0 (1 omdöme)
1,2
1,2
Använd avatar
I have good experience in C#. I am ready to work
$25 USD Om 1 dag
0,0 (0 omdömen)
0,0
0,0
Använd avatar
HI! I have experience with C# and can help you find the solution for your problem. If you wish to chose me for this task, I would like to clarify a few moments with you in chat.
$15 USD Om 7 dagar
0,0 (0 omdömen)
0,0
0,0

Om kunden

Flagga för UNITED STATES
Syracuse, United States
4,9
8
Verifierad betalningsmetod
Medlem sedan apr. 12, 2019

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.