Thread: very nooby question

Results 1 to 10 of 10
  1. #1 very nooby question 
    Registered Member
    Join Date
    May 2013
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    ok guys so this is my first project as i am just learning to code and im having some problems.

    I have the .run and compiler working and when I use the run i get the log in screen, however when i log in it says error connecting to server, again probably an easy fix but idk what to do.
    Reply With Quote  
     

  2. #2  
    -Founder Off Returnofpk-


    Join Date
    Oct 2012
    Age
    28
    Posts
    655
    Thanks given
    97
    Thanks received
    211
    Rep Power
    303
    Quote Originally Posted by billveebee View Post
    ok guys so this is my first project as i am just learning to code and im having some problems.

    I have the .run and compiler working and when I use the run i get the log in screen, however when i log in it says error connecting to server, again probably an easy fix but idk what to do.
    go to client.java and look for
    Code:
    public static String server = "127.0.0.1";
    or
    Code:
    private final static String defaultServerIP = "127.0.0.1";
    if it was for help please click thanks

    or go to client.java and look for server and you will find the ip
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2013
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by sheepmonger View Post
    go to client.java and look for
    Code:
    public static String server = "127.0.0.1";
    or
    Code:
    private final static String defaultServerIP = "127.0.0.1";
    if it was for help please click thanks

    or go to client.java and look for server and you will find the ip
    Thanks but ive already done that and gotten no where
    Reply With Quote  
     

  4. #4  
    Registered Member Herbb's Avatar
    Join Date
    May 2013
    Age
    30
    Posts
    91
    Thanks given
    1
    Thanks received
    2
    Rep Power
    36
    Have your portforwarded? going into router settings via broswer and typing 192.168.1.1 and entering info if needed and have no-ip downloaded and hosting an ip for your server already? but then again that's if you want it online, other wise what he said above is correct, you just need to change all ips to 127.0.0.1 then recompile client and source after both are changed, witch i'm pretty sure 317's it's just client but im unsure.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    May 2013
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Herbb View Post
    Have your portforwarded? going into router settings via broswer and typing 192.168.1.1 and entering info if needed and have no-ip downloaded and hosting an ip for your server already? but then again that's if you want it online, other wise what he said above is correct, you just need to change all ips to 127.0.0.1 then recompile client and source after both are changed, witch i'm pretty sure 317's it's just client but im unsure.
    Oh damn i see what i did now and i feel like an idiot, i had them like that and changed them, thanks guys
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Apr 2012
    Posts
    3,225
    Thanks given
    2,554
    Thanks received
    832
    Rep Power
    0
    Base? I assume the most usual..
    To change the client's IP-address, open the Client class (.java) located in the the client's source-files.
    Search for "server =" -> change the address to your IP-address or localhost (127.0.0.1).
    Save, compile.

    (Ignore if localhost);
    If you still won't be able to connect, check your firewall/anti-virus -settings.
    Also, make sure that you have portforwarded.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    May 2013
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I did this and still cant connect, I'm so confused right now

    edit: im just using the local host as im only using it to help myself learn
    Reply With Quote  
     

  8. #8  
    Only Skype is TrickSpades
    MGkelly's Avatar
    Join Date
    Sep 2013
    Posts
    540
    Thanks given
    92
    Thanks received
    77
    Rep Power
    58
    What source are you using?
    I support your mother.
    Reply With Quote  
     

  9. #9  
    Proud User
    Join Date
    Feb 2011
    Posts
    530
    Thanks given
    69
    Thanks received
    28
    Rep Power
    29
    Tell us what Client & Source you are using, also did you compile the client after changing to localhost?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    May 2013
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    yes i did compile it and i am using the project marmaros source
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 6
    Last Post: 12-09-2009, 05:30 AM
  2. Very Easy Question WIll REP++
    By Chris123111 in forum Help
    Replies: 5
    Last Post: 01-25-2009, 07:35 AM
  3. Very nooby need help...
    By Supa Ownage in forum Help
    Replies: 17
    Last Post: 01-17-2009, 09:45 PM
  4. Realllly Realllly Realllllllly nooby question
    By Andy1814 in forum General
    Replies: 3
    Last Post: 05-22-2008, 05:14 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •