Thread: Login error using vpn

Results 1 to 8 of 8
  1. #1 Login error using vpn 
    Officially Running

    Mr Dream's Avatar
    Join Date
    Dec 2013
    Posts
    1,862
    Thanks given
    549
    Thanks received
    294
    Discord
    View profile
    Rep Power
    881
    Hey so a player is trying to login while using a vpn called FastVPN but gets this error (client sided) which might have to do with the rs2 login decoder but im not sure what and how.



    Reply With Quote  
     

  2. #2  
    x
    x is offline
    Registered Member x's Avatar
    Join Date
    May 2019
    Posts
    177
    Thanks given
    50
    Thanks received
    41
    Discord
    View profile
    Rep Power
    63
    Quote Originally Posted by Mr Dream View Post
    Hey so a player is trying to login while using a vpn called FastVPN but gets this error (client sided) which might have to do with the rs2 login decoder but im not sure what and how.

    It's telling you the exact error... your byte MACa is null..
    assuming MACa is macaddress you need to edit the way your mac address is being set for his os type.
    ▼▼▼ Click to checkout DarkScape a World PvP server in the works! ▼▼▼
    Reply With Quote  
     

  3. #3  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,642
    Thanks given
    174
    Thanks received
    250
    Rep Power
    341
    Someone was having a problem with Kronos a couple days ago with mac address aswell (https://www.rune-server.ee/runescape...gin-crash.html)

    To allow VPN users: In the client I recommend adding a try exception when sending the mac address byte, and if there is an exception send the bytes {0} instead of the players mac address.
    Reply With Quote  
     

  4. #4  
    Officially Running

    Mr Dream's Avatar
    Join Date
    Dec 2013
    Posts
    1,862
    Thanks given
    549
    Thanks received
    294
    Discord
    View profile
    Rep Power
    881
    Quote Originally Posted by Armo View Post
    Someone was having a problem with Kronos a couple days ago with mac address aswell (https://www.rune-server.ee/runescape...gin-crash.html)

    To allow VPN users: In the client I recommend adding a try exception when sending the mac address byte, and if there is an exception send the bytes {0} instead of the players mac address.
    Can you help me with this code because it makes sense.

    public byte[] getMACaddress() {
    try {
    InetAddress ip = InetAddress.getLocalHost();
    NetworkInterface network = NetworkInterface.getByInetAddress(ip);
    return network.getHardwareAddress();
    } catch (Exception e) {
    e.printStackTrace();
    }
    return null;
    }


    Reply With Quote  
     

  5. #5  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,642
    Thanks given
    174
    Thanks received
    250
    Rep Power
    341
    Quote Originally Posted by Mr Dream View Post
    Can you help me with this code because it makes sense.
    Try this:

    Code:
    public byte[] getMACaddress() {
    try {
    InetAddress ip = InetAddress.getLocalHost();
    NetworkInterface network = NetworkInterface.getByInetAddress(ip);
    return network.getHardwareAddress();
    } catch (Exception e) {
    e.printStackTrace();
    }
    return "0".getBytes();
    }
    Reply With Quote  
     

  6. #6  
    Officially Running

    Mr Dream's Avatar
    Join Date
    Dec 2013
    Posts
    1,862
    Thanks given
    549
    Thanks received
    294
    Discord
    View profile
    Rep Power
    881
    Quote Originally Posted by Armo View Post
    Try this:

    Code:
    public byte[] getMACaddress() {
    try {
    InetAddress ip = InetAddress.getLocalHost();
    NetworkInterface network = NetworkInterface.getByInetAddress(ip);
    return network.getHardwareAddress();
    } catch (Exception e) {
    e.printStackTrace();
    }
    return {0};
    }


    Reply With Quote  
     

  7. #7  
    x
    x is offline
    Registered Member x's Avatar
    Join Date
    May 2019
    Posts
    177
    Thanks given
    50
    Thanks received
    41
    Discord
    View profile
    Rep Power
    63
    Quote Originally Posted by Mr Dream View Post
    Code:
    public byte[] getMACaddress() {
            try {
            InetAddress ip = InetAddress.getLocalHost();
            NetworkInterface network = NetworkInterface.getByInetAddress(ip);
            return network.getHardwareAddress();
            } catch (Exception e) {
            e.printStackTrace();
            }
            return "0".getBytes();
            }
    Shouldn't use this tho, should find a way to return the proper mac ID. this leads to a lot of issues.
    But here's it spoon fed and fixed.
    If multiple people have invalid mac's they will be set to 0 which may limit your login usages if you are using runesource. runesource uses macid to not allow more than 2 clients, with this if two people have a "invalid" mac thats set to 0, next person with an invalid mac id wont be able to login.
    Cheap fix.

    If you want a proper fix my suggestion is to learn how to pull mac address by each os type and to make a proper method to pull that mac id because each machine's os pulls mac id's differently.
    https://stackoverflow.com/questions/...es-mac-address

    identify the machines OS
    use commands to run a "ipconfig" or "ifconfig" or whatever to return the value of mac id.
    Use that info to store and send that macid.
    ▼▼▼ Click to checkout DarkScape a World PvP server in the works! ▼▼▼
    Reply With Quote  
     

  8. #8  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,642
    Thanks given
    174
    Thanks received
    250
    Rep Power
    341
    Quote Originally Posted by x View Post
    Code:
    public byte[] getMACaddress() {
            try {
            InetAddress ip = InetAddress.getLocalHost();
            NetworkInterface network = NetworkInterface.getByInetAddress(ip);
            return network.getHardwareAddress();
            } catch (Exception e) {
            e.printStackTrace();
            }
            return "0".getBytes();
            }
    Shouldn't use this tho, should find a way to return the proper mac ID. this leads to a lot of issues.
    But here's it spoon fed and fixed.
    If multiple people have invalid mac's they will be set to 0 which may limit your login usages if you are using runesource. runesource uses macid to not allow more than 2 clients, with this if two people have a "invalid" mac thats set to 0, next person with an invalid mac id wont be able to login.
    Cheap fix.

    If you want a proper fix my suggestion is to learn how to pull mac address by each os type and to make a proper method to pull that mac id because each machine's os pulls mac id's differently.
    https://stackoverflow.com/questions/...es-mac-address

    identify the machines OS
    use commands to run a "ipconfig" or "ifconfig" or whatever to return the value of mac id.
    Use that info to store and send that macid.
    That might be one way of doing it.. And also a cheapfix would be to stop VPN all together by macbanning bytes 0 to avoid exploits.
    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. 377 login error
    By Zahhak in forum Help
    Replies: 0
    Last Post: 03-20-2009, 08:16 AM
  2. 525 rs2hd framework login error
    By Enjoi in forum Help
    Replies: 4
    Last Post: 03-12-2009, 10:09 PM
  3. Logout / Login Error (Delta)
    By illegal in forum Help
    Replies: 2
    Last Post: 02-26-2009, 03:27 PM
  4. making new server, login error.
    By Colby in forum Help
    Replies: 3
    Last Post: 11-09-2008, 04:37 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •