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

Abgeschlossen
Veröffentlicht vor mehr als 4 Jahren

$10-30 USD

Bezahlt bei Lieferung
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>
Projekt-ID: 22877133

Über das Projekt

12 Vorschläge
Remote Projekt
Aktiv vor 4 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
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 in 7 Tagen
5,0 (9 Bewertungen)
4,4
4,4
12 Freelancer bieten im Durchschnitt $32 USD für diesen Auftrag
Avatar des Nutzers
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 in 1 Tag
5,0 (139 Bewertungen)
7,2
7,2
Avatar des Nutzers
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 in 7 Tagen
5,0 (42 Bewertungen)
5,4
5,4
Avatar des Nutzers
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 in 2 Tagen
5,0 (15 Bewertungen)
5,3
5,3
Avatar des Nutzers
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 in 1 Tag
5,0 (61 Bewertungen)
4,4
4,4
Avatar des Nutzers
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 in 4 Tagen
5,0 (13 Bewertungen)
3,8
3,8
Avatar des Nutzers
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 in 7 Tagen
5,0 (2 Bewertungen)
2,2
2,2
Avatar des Nutzers
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 in 7 Tagen
5,0 (2 Bewertungen)
1,5
1,5
Avatar des Nutzers
⭐⭐⭐⭐⭐ Hi ! I'm a C# Expert. It's piece of cake. What is the new IP? Text me on chat, pls. ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐
$19 USD in 1 Tag
5,0 (1 Bewertung)
1,2
1,2
Avatar des Nutzers
I have good experience in C#. I am ready to work
$25 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED STATES
Syracuse, United States
4,9
8
Zahlungsmethode verifiziert
Mitglied seit Apr. 12, 2019

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.