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

Completed
Posted over 4 years ago

$10-30 USD

Paid on delivery
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

About the project

13 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User 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 in 7 days
5.0 (9 reviews)
4.4
4.4
13 freelancers are bidding on average $31 USD for this job
User 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 in 1 day
5.0 (137 reviews)
7.1
7.1
User 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 in 2 days
5.0 (15 reviews)
5.3
5.3
User 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 in 7 days
5.0 (32 reviews)
4.9
4.9
User 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 in 1 day
5.0 (61 reviews)
4.4
4.4
User 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 in 4 days
5.0 (13 reviews)
3.8
3.8
User 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 in 7 days
5.0 (2 reviews)
2.2
2.2
User 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 in 7 days
5.0 (2 reviews)
1.5
1.5
User Avatar
⭐⭐⭐⭐⭐ 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 day
5.0 (1 review)
1.2
1.2
User Avatar
I have good experience in C#. I am ready to work
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User 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 in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Syracuse, United States
4.9
8
Payment method verified
Member since Apr 12, 2019

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.