Server connect to it self?

Results 1 to 12 of 12
  1. #1
    Apprentice phillykid215 is offline
    MemberRank
    Jan 2010 Join Date
    12Posts

    Server connect to it self?

    I have a server and i can connect to it when it's running on local host but when I make it my WAN IP I can't but my friend can connect, is there a way to let the server connect to it self?

    I am not going to use Hamachi.


  2. #2
    Gamma Xerixe is offline
    MemberRank
    Apr 2008 Join Date
    MalaysiaLocation
    3,605Posts

    Re: Server connect to it self?

    Use a loopback adapter.

  3. #3
    Apprentice phillykid215 is offline
    MemberRank
    Jan 2010 Join Date
    12Posts

    Re: Server connect to it self?

    How do I do this?

    Quote Originally Posted by Xerixe View Post
    Use a loopback adapter.
    I installed it but how do I use it now?
    I tried just installing it and connecting but still nothing.

  4. #4
    Ass > Tits Lapje is offline
    MemberRank
    Feb 2009 Join Date
    nullLocation
    1,879Posts

    Re: Server connect to it self?

    use a clean (127.0.0.1) IP localhost for yourself and distribute a client with your wanIP for your friends.

  5. #5
    Apprentice phillykid215 is offline
    MemberRank
    Jan 2010 Join Date
    12Posts

    Re: Server connect to it self?

    Quote Originally Posted by Lapje View Post
    use a clean (127.0.0.1) IP localhost for yourself and distribute a client with your wanIP for your friends.
    It didn't work, it kicked me back to the login screen.

  6. #6
    Tsun.getDere(f); Tsundere is offline
    MemberRank
    May 2011 Join Date
    437Posts

    Re: Server connect to it self?

    Set localhost/debug to true in your ServerConstants.java file. At least I think the localhost boolean in Lithium based sources is the same as debug in Moople/LocalMS based sources. This lets you connect to the client yourself. You might want to make a check like how Simon in v88 did so that you can sign on to the public server when you use a certain account name/id.

    EDIT: Ignore this, since you're using a localhost and not a redirector. I misread in the beginning.
    Last edited by Tsundere; 16-01-13 at 12:19 AM.

  7. #7
    Apprentice phillykid215 is offline
    MemberRank
    Jan 2010 Join Date
    12Posts

    Re: Server connect to it self?

    There is no debug, here is the file

    Code:
    package constants;
    
    public class ServerConstants {
        public static short VERSION = 83;
        public static String SERVERNAME = "AsteriskStory";
        public static String SERVEROWNER = "Scott";
        // Rate Configuration
        public static byte EXP_RATE = (byte)30;
        public static byte MESO_RATE = 10;
        public static final byte DROP_RATE = 5;
        public static final byte BOSS_DROP_RATE = 2;
        public static final byte QUEST_EXP_RATE = 5;
        public static final byte QUEST_MESO_RATE = 3;
        public static final boolean GMS_LIKE = false;
        // Login Configuration
        public static final byte FLAG = 3;
        public static final int CHANNEL_NUMBER = 1;
        public static final int CHANNEL_LOAD = 50;
        public static final String EVENT_MESSAGE = "-#r" + SERVERNAME +"#k- Exp:#b"+ EXP_RATE + "x#k Meso:#r" +MESO_RATE+ "x#k Drop:#b"+ DROP_RATE +"x#k";
        public static final long RANKING_INTERVAL = 3600000;
        public static final boolean ENABLE_PIN = false;
        public static final boolean ENABLE_PIC = false;
        // Channel Configuration
        public static String SERVER_MESSAGE = "Welcome to "+ SERVERNAME +".Exp:"+ EXP_RATE + "x Meso:" +MESO_RATE+ "x Drop:"+ DROP_RATE +"x BossDropRate:"+ BOSS_DROP_RATE +"x QuestExpRate:"+ QUEST_EXP_RATE +"x QuestMesoRate:"+ QUEST_MESO_RATE +"x";
        public static String RECOMMEND_MESSAGE = "";
        public static final String EVENTS = "automsg KerningPQ Boats Subway";
        // IP Configuration
        public static final String HOST = "169.254.53.87";
        //XSPro beast features
        public static final boolean exp_bonuses = true; //done
        public static final String exp_bonus_message = "You have just gained an 150% exp bonus! For now it will be stored somewhere safe, for more information type '@bonuses', or to use it now, type '@expbonus'";
        public static final String exp_bonus_overhead_message = "#eYou have gained an ExpBonus! Check your chatlog for more info.#k";
        public static final boolean login_announcing = true; //done
        public static final int exp_bonus_chance = 2; // 1 out of 20 chance default don't set it below 2 ever
        public static final boolean weapons_level_up = true; // weapons level up the more you use them
        public static final boolean gain_nx_for_killing_mobs = true; // you gain Nx for every mob you kill
        public static final int nx_gain = 30; //nx gain for killing a mob
        public static final int max_weapon_exp = 10; //how much exp a weapon needs to level
        public static final boolean gain_medals = true; // gain medals for various achievements
        public static final boolean levelup_bonuses = true; // gain various bonuses upon leveling up (fame, mesos etc)
        public static final boolean npc_commands = true; // toggles Npc commands ex. @cody
        public static final boolean playercommands = true;
        public static final boolean tim = true;
        // ========reborns=======
        public static final boolean reborns = true; // once you reach level 200 you can go back to 1
        public static final boolean resetstats = true; // reset stats upon reborning?
        public static final boolean gainmesos = true; // gain rewards for reborning?
        public static final int mesos = 10000000; // mesos you gain for reborning
        public static final boolean resetjob = true; // reset job upon reborning?
        public static final boolean gmjob = true; // get GM job after X reborns? (Not commands, just the job)
        public static final int rebirths_until_gm_job = 5; //how many reborns until gm job? set as 0 to disable
        public static final boolean drop_gm_message = true; // drop message about someone getting gm job
        public static final int weapons_level_upon_rb = 10; // how many times do weapons level upon reborning? put 0 to turn it off
        public static final boolean legends = true; //The legend in front of your name ex: (TheBeast)Redeemer34:hi
        public static final boolean max_skills = false; // want your skills to always be maxed?
        // Note: you can have weapons leveling up by killing monsters, and just have weapons level by RBing
    }
    Do I set the lookback as the server IP or no? I tried both and still no dice.

  8. #8
    Tsun.getDere(f); Tsundere is offline
    MemberRank
    May 2011 Join Date
    437Posts

    Re: Server connect to it self?

    Quote Originally Posted by phillykid215 View Post
    There is no debug, here is the file

    Code:
    package constants;
    
    public class ServerConstants {
        public static short VERSION = 83;
        public static String SERVERNAME = "AsteriskStory";
        public static String SERVEROWNER = "Scott";
        // Rate Configuration
        public static byte EXP_RATE = (byte)30;
        public static byte MESO_RATE = 10;
        public static final byte DROP_RATE = 5;
        public static final byte BOSS_DROP_RATE = 2;
        public static final byte QUEST_EXP_RATE = 5;
        public static final byte QUEST_MESO_RATE = 3;
        public static final boolean GMS_LIKE = false;
        // Login Configuration
        public static final byte FLAG = 3;
        public static final int CHANNEL_NUMBER = 1;
        public static final int CHANNEL_LOAD = 50;
        public static final String EVENT_MESSAGE = "-#r" + SERVERNAME +"#k- Exp:#b"+ EXP_RATE + "x#k Meso:#r" +MESO_RATE+ "x#k Drop:#b"+ DROP_RATE +"x#k";
        public static final long RANKING_INTERVAL = 3600000;
        public static final boolean ENABLE_PIN = false;
        public static final boolean ENABLE_PIC = false;
        // Channel Configuration
        public static String SERVER_MESSAGE = "Welcome to "+ SERVERNAME +".Exp:"+ EXP_RATE + "x Meso:" +MESO_RATE+ "x Drop:"+ DROP_RATE +"x BossDropRate:"+ BOSS_DROP_RATE +"x QuestExpRate:"+ QUEST_EXP_RATE +"x QuestMesoRate:"+ QUEST_MESO_RATE +"x";
        public static String RECOMMEND_MESSAGE = "";
        public static final String EVENTS = "automsg KerningPQ Boats Subway";
        // IP Configuration
        public static final String HOST = "169.254.53.87";
        //XSPro beast features
        public static final boolean exp_bonuses = true; //done
        public static final String exp_bonus_message = "You have just gained an 150% exp bonus! For now it will be stored somewhere safe, for more information type '@bonuses', or to use it now, type '@expbonus'";
        public static final String exp_bonus_overhead_message = "#eYou have gained an ExpBonus! Check your chatlog for more info.#k";
        public static final boolean login_announcing = true; //done
        public static final int exp_bonus_chance = 2; // 1 out of 20 chance default don't set it below 2 ever
        public static final boolean weapons_level_up = true; // weapons level up the more you use them
        public static final boolean gain_nx_for_killing_mobs = true; // you gain Nx for every mob you kill
        public static final int nx_gain = 30; //nx gain for killing a mob
        public static final int max_weapon_exp = 10; //how much exp a weapon needs to level
        public static final boolean gain_medals = true; // gain medals for various achievements
        public static final boolean levelup_bonuses = true; // gain various bonuses upon leveling up (fame, mesos etc)
        public static final boolean npc_commands = true; // toggles Npc commands ex. @cody
        public static final boolean playercommands = true;
        public static final boolean tim = true;
        // ========reborns=======
        public static final boolean reborns = true; // once you reach level 200 you can go back to 1
        public static final boolean resetstats = true; // reset stats upon reborning?
        public static final boolean gainmesos = true; // gain rewards for reborning?
        public static final int mesos = 10000000; // mesos you gain for reborning
        public static final boolean resetjob = true; // reset job upon reborning?
        public static final boolean gmjob = true; // get GM job after X reborns? (Not commands, just the job)
        public static final int rebirths_until_gm_job = 5; //how many reborns until gm job? set as 0 to disable
        public static final boolean drop_gm_message = true; // drop message about someone getting gm job
        public static final int weapons_level_upon_rb = 10; // how many times do weapons level upon reborning? put 0 to turn it off
        public static final boolean legends = true; //The legend in front of your name ex: (TheBeast)Redeemer34:hi
        public static final boolean max_skills = false; // want your skills to always be maxed?
        // Note: you can have weapons leveling up by killing monsters, and just have weapons level by RBing
    }
    Do I set the lookback as the server IP or no? I tried both and still no dice.
    You set the loopback as your wanip or 127.0.0.1. Either will work, since you just want it to allow you online while the server is public.

    However, since you're using v83, which has a localhost, you don't even need to use loopback. All you had to do was use a localhost that's set to 127.0.0.1 to connect to your server.

  9. #9
    Apprentice phillykid215 is offline
    MemberRank
    Jan 2010 Join Date
    12Posts

    Re: Server connect to it self?

    Quote Originally Posted by Tsundere View Post
    You set the loopback as your wanip or 127.0.0.1. Either will work, since you just want it to allow you online while the server is public.

    However, since you're using v83, which has a localhost, you don't even need to use loopback. All you had to do was use a localhost that's set to 127.0.0.1 to connect to your server.
    I want my friend to be able to connect to it too though so It can't be 127.0.0.1, my friend lives on the other side of the country but if I set it as my wan he can connect but I can't

  10. #10
    Tsun.getDere(f); Tsundere is offline
    MemberRank
    May 2011 Join Date
    437Posts

    Re: Server connect to it self?

    Quote Originally Posted by phillykid215 View Post
    I want my friend to be able to connect to it too though so It can't be 127.0.0.1, my friend lives on the other side of the country but if I set it as my wan he can connect but I can't
    Your host ip should be your wanip in your source. Your friend should have a client with the wanip. You can use a client with 127.0.0.1 still, since you're on the same pc that the server is being hosted on.

  11. #11
    Apprentice phillykid215 is offline
    MemberRank
    Jan 2010 Join Date
    12Posts

    Re: Server connect to it self?

    Quote Originally Posted by Tsundere View Post
    Your host ip should be your wanip in your source. Your friend should have a client with the wanip. You can use a client with 127.0.0.1 still, since you're on the same pc that the server is being hosted on.
    I can start up maplestory and all but when I get to char selecting it kicks me off but he can get on, the server is having a hard time connecting to it self and I don't know how to fix this, I installed a loop back but it didn't work.

  12. #12
    Apprentice phillykid215 is offline
    MemberRank
    Jan 2010 Join Date
    12Posts

    Re: Server connect to it self?

    Hey guys, figured it out



Advertisement