1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

Solved Can't connect to proxy

Discussion in 'Support' started by Yamatsan, Dec 14, 2013.

Thread Status:
Not open for further replies.
  1. Yamatsan

    Yamatsan New Member

    Hello,
    When using my (external) IP wich is 77.168.36.210, I can't connect to the Server Network..
    I have followed the tutorial of sgtcaze to set everything up, there are no errors on startup of the Server, LilyPadGo Proxy and LilyPadGo connect. I also have configured IPTables to allow connections on the ports 25566, 25565 and 5091 trough wlan1 and lo.
    Here is my current setup on a Debian (Linux) machine:
    Spigot Server - Hub - Port 25566 - Port Forwarded in router
    LilyPadGo Proxy - Port 25565 - Port Forwarded in router
    LilyPadGo Connect - Port 5091 - Port Forwarded in router

    Tests I did:
    When connecting to 77.168.36.210 offline when trying to connect says can't reach server
    When connecting to 77.168.36.210:25566 online shows Spigot Hub Server
    When connecting to 77.168.36.210:5091 offline when trying to connect says Connection Refused: connect

    Spigot Server Hub Files:
    server.properties:
    Code (text):
    #Minecraft server properties
    #Sat Dec 14 14:36:09 CET 2013
    generator-settings=
    op-permission-level=4
    allow-nether=false
    level-name=world
    enable-query=false
    allow-flight=false
    server-port=25566
    level-type=DEFAULT
    enable-rcon=false
    force-gamemode=false
    level-seed=
    server-ip=
    max-build-height=256
    spawn-npcs=false
    white-list=false
    spawn-animals=false
    texture-pack=
    snooper-enabled=false
    hardcore=false
    online-mode=true
    pvp=true
    difficulty=2
    enable-command-block=true
    gamemode=2
    player-idle-timeout=0
    max-players=100
    spawn-monsters=false
    generate-structures=true
    view-distance=10
    spawn-protection=16
    motd=\u00A73The Pixcraft Network - Hub
     
    config.yml (From LilyPadConnect):
    Code (text):
    settings:
      address: 127.0.0.1
      port: 5091
      credentials:
        username: hub
        password: s5uceyad
     
    spigot.yml:
    Code (text):
    # This is the main configuration file for Spigot.
    # As you can see, there's tons to configure. Some options may impact gameplay, so use
    # with caution, and make sure you know what each option does before configuring.
    # For a reference for any variable inside this file, check out the Spigot wiki at
    # http://www.spigotmc.org/wiki/spigot-configuration/
    #
    # If you need help with the configuration or have any questions related to Spigot,
    # join us at the IRC or drop by our forums and leave a post.
    #
    # IRC: #spigot @ irc.esper.net ( http://webchat.esper.net/?channel=spigot )
    # Forums: http://www.spigotmc.org/forum/

    config-version: 3
    commands:
      tab-complete: false
      spam-exclusions:
      - /skill
      log: true
    listeners:
    - port: default
      host: default
      netty: true
    settings:
      netty-threads: 3
      log-filters:
      - ^(.*)(/login)(.*)$
      bungeecord-addresses:
      - 127.0.0.1
      bungeecord: false
      timeout-time: 60
      restart-on-crash: false
      restart-script: ./start.sh
      prevent-proxies: false
    messages:
      whitelist: Whoops, we are under maintenance!
      unknown-command: Unknown command.
      server-full: The server seems to be currently full. Try again later!
      outdated-client: Outdated client!
      outdated-server: Outdated server!
      restart: The server is being restarted. Please try to reconnect
    world-settings:
      default:
        verbose: false
        view-distance: 10
        chunks-per-tick: 650
        merge-radius:
          exp: 3.0
          item: 2.5
        item-despawn-rate: 6000
        arrow-despawn-rate: 1200
        mob-spawn-range: 4
        anti-xray:
          enabled: false
          engine-mode: 1
          blocks:
          - 1
          - 5
          - 14
          - 15
          - 16
          - 21
          - 48
          - 49
          - 54
          - 56
          - 73
          - 74
          - 82
          - 129
          - 130
        growth:
          cactus-modifier: 100
          cane-modifier: 100
          melon-modifier: 100
          mushroom-modifier: 100
          pumpkin-modifier: 100
          sapling-modifier: 100
          wheat-modifier: 100
        entity-activation-range:
          animals: 32
          monsters: 32
          misc: 16
        entity-tracking-range:
          players: 48
          animals: 48
          monsters: 48
          misc: 32
          other: 64
        ticks-per:
          hopper-transfer: 8
          hopper-check: 8
        random-light-updates: false
        save-structure-info: true
     
    bukkit.yml:
    Code (text):
    # This is the main configuration file for Bukkit.
    # As you can see, there's actually not that much to configure without any plugins.
    # For a reference for any variable inside this file, check out the bukkit wiki at
    # http://wiki.bukkit.org/Bukkit.yml
    settings:
      allow-end: false
      warn-on-overload: true
      permissions-file: permissions.yml
      update-folder: update
      ping-packet-limit: 100
      use-exact-login-location: false
      plugin-profiling: false
      connection-throttle: 4000
      query-plugins: true
      deprecated-verbose: default
      shutdown-message: The server is being restarted. Please try to reconnect
    spawn-limits:
      monsters: 70
      animals: 15
      water-animals: 5
      ambient: 15
    chunk-gc:
      period-in-ticks: 600
      load-threshold: 0
    ticks-per:
      animal-spawns: 400
      monster-spawns: 1
      autosave: 0
    auto-updater:
      enabled: true
      on-broken:
      - warn-console
      - warn-ops
      on-update:
      - warn-console
      - warn-ops
      preferred-channel: rb
      host: dl.bukkit.org
      suggest-channels: true
    database:
      username: bukkit
      isolation: SERIALIZABLE
      driver: org.sqlite.JDBC
      password: walrus
      url: jdbc:sqlite:{DIR}{NAME}.db
     
    LilyPadGo Proxy files:
    proxy.yml:
    Code (text):
    connect:
      address: 127.0.0.1:5091
      credentials:
        username: lp
        password: wrup2dre
    proxy:
      bind: :25565
      routes:
      - domain: ""
        server: hub
      locale:
        full: The server seems to be currently full. Try again later!
        offline: The requested server is currently offline. Try again later!
        loggedIn: You seem to be logged in already. Try again later!
        lostConn: Lost connection... Please try to reconnect
        shutdown: The server is being restarted. Please try to reconnect
      motd: '&3The Pixcraft Network'
      maxPlayers: 100
      authenticate: true
     
    LilyPadGo Connect files:
    connect.yml:
    Code (text):
    bind: :5091
    logins:
    - username: lp
      password: wrup2dre
    - regexp: hub
      password: s5uceyad
     
    I tried to be as clear as possible with the problem, does somebody know how to fix this issue?
    Last edited: Dec 14, 2013
  2. The_Zip

    The_Zip Active Member Resource Contributor

    Things for being as clear as possible, I love the fact that you want to the extent of uploading all the configs. But, two quick things, instead of downloading them, which no one wants to do, it would be much easier if you could just paste the contents on the forums using. [CODE.].[./.CODE] of course without the periods. And, is your console giving you any errors?
  3. Yamatsan

    Yamatsan New Member

    No, the console does not give any errors. I will try later to put it in as code (for now I have changed the links to view them in your browser instead of downloading them), I suppose you looked at the configs? Did I fill in the configs the right way? Or do you think the problem is caused by the IPTables? If so I can also post my IPTable rules in here. UPDATE: I have placed all the files in a code box!
    Last edited: Dec 14, 2013
  4. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    Try to make the bukkit/spigot server offline mode. ( Don't worry, people without a purchased account still can't join ;p )
  5. Yamatsan

    Yamatsan New Member

    Okay, I am gonna try that now! Btw, just discovered something else when trying to connect using local network IP wich is 192.168.1.77 it says JavaExeption: connection reset.. Weird stuff ;P
    Last edited: Dec 15, 2013
  6. Yamatsan

    Yamatsan New Member

    Turned it to offline mode, did not solved the problem.. Aside from that I have discovered that when trying to connect using local network IP wich is 192.168.1.77 it says Internal exception: java.net.SocketException: Connection reset I have discovered something else on startup of the server it says:
    Code (text):
    [Connect] Connection timed out while acquiring role, retrying
    [Connect] Connected to the cloud
    Here is my IPTables.rules Btw:
    Code (text):
    *filter
    :INPUT ACCEPT [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A INPUT -p icmp -j ACCEPT

    #Port 25565 wlan1 interface
    -A INPUT -i wlan1 -p tcp -m multiport --dports 25565 -m state --state NEW,ESTABLISHED -j ACCEPT

    #Port 5091 lo interface
    -A INPUT -i lo -p tcp -m multiport --dports 5091 -m state --state NEW,ESTABLISHED -j ACCEPT

    #Port 25566 wlan1 and lo interface
    -A INPUT -i wlan1 -p tcp -m multiport --dports 25566 -m state --state NEW,ESTABLISHED -j ACCEPT
    -A INPUT -i lo -p tcp -m multiport --dports 25566 -m state --state NEW,ESTABLISHED -j ACCEPT

    -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
    -A INPUT -j REJECT --reject-with icmp-host-prohibited
    -A FORWARD -j REJECT --reject-with icmp-host-prohibited
    COMMIT
     
    Last edited: Dec 15, 2013
  7. The_Zip

    The_Zip Active Member Resource Contributor

    Hmm, just double checking you restarted your servers when you turned them into offline mode. And, everything looks fine to me. I would say double check your using the latest versions of everything. And, if that doesn't work, I would reconfig everything. Also, you don't have any FireWalls set up, correct?
  8. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    Is there any reason to use IPTables or have a firewall at all for that matter?
  9. Yamatsan

    Yamatsan New Member

    Yes, I use the server for SSH and other things too.. But I might check if the problem lies to the IPTables by disabling them and look if then I am able to join! But I thought I had configured the IPTables correctly... What are the risks of not using IPTables aka allow all connections?
    I only have IPTables set-up and if I recall that is a kind of firewall.. Other than that I have the most recent versions of everything.. Using Spigot 1.6.4 and latest LilyPadGo build. I would really like to get this work, I like LilyPad more than BungeeCord so yeah...
  10. Yamatsan

    Yamatsan New Member

    Changed some things around, now when trying to connect I get the message: JavaExeption: Connection Reset
    So the ports are open but I am unable to connect any ideas on how to solve this?
    Using Proxy version 15 and Connect version 18.
  11. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    Are you using the latest Bukkit-Connect?
  12. Yamatsan

    Yamatsan New Member

    Yes, version 50 with Spigot 1.6.4
  13. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    Can you try to use Spigot or Bukkit 1.7?
    • Winner Winner x 1
  14. Yamatsan

    Yamatsan New Member

    Okay, gonna try it now!
    Last edited: Dec 15, 2013
  15. Yamatsan

    Yamatsan New Member

    YOU ARE AWESOME!!!!!!!! BEST SUPPORT EVER!!!!!!!!! IT WORKS!!! Yet it was a very simple solution but still you made my day!!! Thanks for all the help! You can close this thread! ;P
    • Like Like x 1
  16. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    Glad to hear we could make your day :D
Thread Status:
Not open for further replies.

Share This Page