Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 17:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Guide] Using Dynamic IP Addresses [Without Hamachi]

Discussion on [Guide] Using Dynamic IP Addresses [Without Hamachi] within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old   #1
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
[Guide] Using Dynamic IP Addresses [Without Hamachi]

Hey everyone.

I've noticed that people seems to be obsessed with making their IP Address static. I know that in some cases (such as my case), a router might reject a static address because of the internet service provider's forced settings on the network.

A month ago, *** Communications (my ISP) forced my router to DELETE the option of having a static address. I hate using Hamachi, so I come up with this solution:

Code:
if (server.NoIpHost != String.Empty)
{
       IPHostEntry ip = Dns.GetHostEntry(server.NoIpHost);
       server.IPAddress = ip.AddressList[0].ToString();
}
All you have to do is get a No-IP host and load that instead of the IP Address. Have the client connect to the host and it's good to go. I tested it and I use it for Burning Skies's test server. I can use this to launch my server from any location as well.

Hope this helps someone.
Sincerely,
Spirited Fang
Spirited is offline  
Thanks
9 Users
Old 02/24/2012, 01:54   #2
 
PretendTime's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 68
Received Thanks: 9
Woah that's awesome dude!
PretendTime is offline  
Old 02/24/2012, 06:30   #3
 
12k's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 218
Received Thanks: 33
Should make a script that will auto login to a free dns host and change ur IP setting there on server start up ^^, that way it eliminates that step as well. (Also, just fyi, u can use ur domain too. If your using godaddy i know they allow multiple dns' to ur domain. Example yourdomain.com, server1.yourdomain.com, server2.yourdomain.com, etc)
12k is offline  
Old 02/24/2012, 07:30   #4
 
elite*gold: 0
Join Date: Feb 2011
Posts: 46
Received Thanks: 1
Interesting, but where should I add this code????
djneo31 is offline  
Old 02/24/2012, 08:38   #5
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Quote:
Originally Posted by 12k View Post
Should make a script that will auto login to a free dns host and change ur IP setting there on server start up ^^, that way it eliminates that step as well. (Also, just fyi, u can use ur domain too. If your using godaddy i know they allow multiple dns' to ur domain. Example yourdomain.com, server1.yourdomain.com, server2.yourdomain.com, etc)
How does a domain solve the dynamic ip issue though? Isn't a script to do all of that a bit... much?

Quote:
Originally Posted by djneo31 View Post
Interesting, but where should I add this code????
Where it is needed. Being a programmer means developing solutions to problems. The code I provided isn't complicated. Google should tell you everything you need to know about the method I used. As far as placing it in your source goes, I have no idea. It's not my source. You should open and read it instead of asking so many questions.
Spirited is offline  
Thanks
1 User
Old 02/24/2012, 11:24   #6
 
elite*gold: 0
Join Date: Mar 2009
Posts: 228
Received Thanks: 47
thanks fang, but is there any reference should i add?
dego4ever is offline  
Old 02/24/2012, 11:42   #7
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Quote:
Originally Posted by dego4ever View Post
thanks fang, but is there any reference should i add?

Spirited is offline  
Thanks
1 User
Old 02/24/2012, 12:21   #8
 
elite*gold: 0
Join Date: Mar 2009
Posts: 228
Received Thanks: 47
O.o it's already in System.dll
thanks again,, :*
dego4ever is offline  
Old 02/24/2012, 13:01   #9
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
Great release this would help allot for some people!
JobvdH is offline  
Old 02/24/2012, 15:42   #10
 
U2_Caparzo's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
Quote:
Originally Posted by dego4ever View Post
thanks fang, but is there any reference should i add?
i would do it as a void
public static void GetIP()
the code that fang provided

define a string in Kernel, world(depending from your source) or server(fang's source)

then in program.cs in the Main method add something like

World.ServerIP = GetIP();

then each time u have to put your IP u just write
xxxxxx = World.ServerIP;
U2_Caparzo is offline  
Old 02/24/2012, 15:53   #11
 
elite*gold: 0
Join Date: Jan 2007
Posts: 33
Received Thanks: 6
Thanks, really effective but how about making a loader where you put your domain name (No-Ip) insted the servers' Ip? I saw one released but its outdated. No-Ip have a application that`s updating your Ip with your domain name automatically at Windows startup. It's complicated to create such a programme?
zero_epvp is offline  
Old 02/24/2012, 19:19   #12
 
U2_Caparzo's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
Quote:
Originally Posted by zero_epvp View Post
Thanks, really effective but how about making a loader where you put your domain name (No-Ip) insted the servers' Ip? I saw one released but its outdated. No-Ip have a application that`s updating your Ip with your domain name automatically at Windows startup. It's complicated to create such a programme?
but u have to run the ConquerLoader with an IP, not a domain name i suppose, but u can just code a launcher/autopatcher(if u want) wich update the IP in the config file for the conquerLoader(LoaderSet.ini) if u apply the same code for source and launcher, u will be able to log-in w/o hamachi, including other PCs...
U2_Caparzo is offline  
Old 02/25/2012, 06:20   #13
 
12k's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 218
Received Thanks: 33
Quote:
Originally Posted by Fаng View Post
How does a domain solve the dynamic ip issue though? Isn't a script to do all of that a bit... much?
It may be a bit much, but it would require nothing to be changed manually when ur IP changes. And all a No-IP is, is a sub domain of one of their purchased domains pointing to ur IP. Any purchased domain comes with unlimited sub domains.
12k is offline  
Old 02/25/2012, 11:09   #14
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Conquer Loader v5.2 is what I use and it can handle No-Ip addresses in the IP field. It makes things simple for testing while your on a laptop that connects to multiple ip addresses in a day. I'm not suggesting that this should replace a VPS or anything professional. This is a just simple fix for a simple problem.
Spirited is offline  
Old 02/26/2012, 13:48   #15
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
is what I use For Co Loader Client and its working fine......


HTML Code:
try
            {
                try
                {
                    IPHostEntry serverHE;
                    try
                    {
                        serverHE = Dns.GetHostEntry(Strings.DNS);
                    }
                    catch (Exception)
                    {
                        MessageBox.Show("Host not found");
                        Environment.Exit(1);
                        return;
                    }
                    IPAddress IP = serverHE.AddressList[0];
                    Strings.DNS = IP.ToString();
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToString());
                }
                if (File.Exists(System.Windows.Forms.Application.StartupPath + @"\LoaderSet.ini"))
                {
                    File.Delete(System.Windows.Forms.Application.StartupPath + @"\LoaderSet.ini");
                    List<string> Lines = new List<string>();

                    Lines.Add("[Loader]");
                    Lines.Add("IPAddress="+Strings.DNS);
                    Lines.Add("LoginPort=" + Strings.AuthPort);
                    Lines.Add("GamePort="+Strings.GamePort);
                    File.WriteAllLines("LoaderSet.ini", Lines.ToArray());                    
                    try
                    {
                        Process p = new Process();
                        p.StartInfo.FileName = "ConquerLoader.exe";
                        p.StartInfo.CreateNoWindow = true;
                        p.StartInfo.Arguments = "/r";
                        p.Start();
                        Environment.Exit(1);
                    }
                    catch
                    {
                        MessageBox.Show("ConquerLoader.exe not found!");
                    }
                }
                else
                {                     
                    List<string> Lines = new List<string>();

                    Lines.Add("[Loader]");
                    Lines.Add("IPAddress=" + Strings.DNS);
                    Lines.Add("LoginPort=" + Strings.AuthPort);
                    Lines.Add("GamePort=" + Strings.GamePort);
                    File.WriteAllLines("LoaderSet.ini", Lines.ToArray());
                  try
                    {
                        Process p = new Process();
                        p.StartInfo.FileName = "ConquerLoader.exe";
                        p.StartInfo.CreateNoWindow = true;
                        p.StartInfo.Arguments = "/r";
                        p.Start();
                        Environment.Exit(1);
                    }
                    catch
                    {
                        MessageBox.Show("ConquerLoader.exe not found!");
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
                Environment.Exit(1);
            }
marlyandedsel is offline  
Closed Thread


Similar Threads Similar Threads
guide: debug pwi, find function addresses and offsets, write a bot(c++ code included)
09/04/2022 - PW Hacks, Bots, Cheats, Exploits - 123 Replies
hi, let's start right away. what you can learn: - trace and call ingame-functions like attack, cast spell, pick up, moveto, ... - traverse object lists like items, mobs, players - read ingame structures (class objects) and how they play together - write your own fully client-side bot that doesnt need to simulate mouse/keyboard input and doesnt need to read pixels
[GUIDE] how to make ur server non hamachi guide on youtube
12/12/2010 - EO PServer Guides & Releases - 11 Replies
Well i found this guide on Youtube i though it might help link : YouTube - MAking Server Public No hamachi have fun ;) feel free to ask
[GUIDE] Einen eigenen Metin2 Hamachi Pserver [EINFACHER GUIDE]
12/08/2010 - Metin2 Guides & Templates - 20 Replies
Mir war ein bisschen Langweilig da dacht ich, ich mach mal einen Metin2 Hamachi Pserver Guide. Ich hoffe er gefällt euch ;) Es ist zwar eine Menge zu Lesen aber der Spaß ist gigantisch. Folgendes Wird Gebraucht: 1. Hamachi 2. ServerFiles (Per Pn natürlich) 3. Einen Pc oder Laptop mit mindestens 2GB Ram 4. Eine Menge Geduld für den ersten Anlauf
[GUIDE]Dynamic Ip
09/24/2010 - EO PServer Guides & Releases - 8 Replies
Most of ppl thats have Dynamic ip and they cant get it static for many of reasons this guide will help you to run ur server without the effected with the changing of ip in sure it will not be as static but will be good for Dynamic users 1st you have to download the following : 1-DynDns Play tool By hio 2-AutoPatchServer 3.0 By forcer 3-No-IP Windows Dynamic Update Client v3.0.4
[Addresses to help Wsuo] GMS v.52- 53 addresses
05/09/2008 - MapleStory - 7 Replies
Thought i'd leech this to save you some time for what you are looking for.



All times are GMT +2. The time now is 17:35.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.