Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Access restrictions with Forge?
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
ianc1215

Access restrictions with Forge?

By ianc1215, January 24, 2015 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

ianc1215    2

ianc1215

ianc1215    2

  • Stone Miner
  • ianc1215
  • Members
  • 2
  • 55 posts
Posted January 24, 2015

I was wondering if there are any access restrictions built into Forge / FML that would throw anything similar to a SecurityException. If I wanted to connect to an external resource on a remote port by opening a new socket would Forge stop me?

  • Quote

Share this post


Link to post
Share on other sites

Anon10W1z    26

Anon10W1z

Anon10W1z    26

  • Diamond Finder
  • Anon10W1z
  • Forge Modder
  • 26
  • 311 posts
Posted January 24, 2015

What exactly are you doing?

  • Quote

Share this post


Link to post
Share on other sites

ianc1215    2

ianc1215

ianc1215    2

  • Stone Miner
  • ianc1215
  • Members
  • 2
  • 55 posts
Posted January 24, 2015

Looking to build a small monitoring tool that would send heartbeats from the server to a small application for logging. My idea what to make a small mod that started up with the server and opened a connection the server on the loopback address of the server. Like I said just a simple monitoring application nothing more nothing less.

  • Quote

Share this post


Link to post
Share on other sites

Jacky2611    42

Jacky2611

Jacky2611    42

  • Diamond Finder
  • Jacky2611
  • Members
  • 42
  • 499 posts
Posted January 24, 2015

Nopt sure if i should trust you :/

Have you already looked at Open Eye? It is on github. (called OpenData)

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6671

diesieben07

diesieben07    6671

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6671
  • 45620 posts
Posted January 24, 2015

FML does have a Security Manager, but at this point it only disallows direct System.exit calls.

  • Quote

Share this post


Link to post
Share on other sites

ianc1215    2

ianc1215

ianc1215    2

  • Stone Miner
  • ianc1215
  • Members
  • 2
  • 55 posts
Posted January 24, 2015

The only reason I am looking into a way to use forge in my concept is so I can make it part of the server. But since I am wanting to send pings to a destination other than the minecraft server or the minecraft client the only way I can think to do so is to open a network socket on the localhost for communication. Most of the other code will sit on it own thread to try and not interfere with the game as much as possible.

 

In essence the idea would be no more dangerous than the update checkers that come with numerous mods. The would just sends a pong when the outside app sends a ping.

  • Quote

Share this post


Link to post
Share on other sites

Trynthlas    2

Trynthlas

Trynthlas    2

  • Tree Puncher
  • Trynthlas
  • Members
  • 2
  • 16 posts
Posted January 24, 2015

Take a look at the automatic crash-reporting feature of the Minecraft Comes Alive mod. I peeked at it the other day and I think it's basically what you're trying to do (for other purposes)

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • BitNet_
      [1.12.2] Exception loading model

      By BitNet_ · Posted 11 minutes ago

      That hasn't worked for me, I still get the model registering error even when adding the code to my build.gradle
    • JMAS
      Recompile mod with newer version of Java?

      By JMAS · Posted 14 minutes ago

      Thank you for your quick and direct response.   After making the changes directed, I now receive the following error: Execution failed for task ':runClient'. > Process 'command 'C:\Program Files\Java\jdk1.8.0_231\bin\java.exe'' finished with non-zero exit value 1    No new debug.log was generated in run/logs. 😕
    • Lea9ue
      .setRepairItem not work

      By Lea9ue · Posted 28 minutes ago

      In your item class you should have something like...   @Override public boolean getIsRepairable(ItemStack toRepair, ItemStack repair) { if (toRepair.getItem().equals("YOUR ITEM") && repair.getItem().equals("WHAT REPAIRS IT")) { return true; } else { return false; } }  
    • Electrodynamite12
      .setRepairItem not work

      By Electrodynamite12 · Posted 35 minutes ago

      I made the ToolMaterial, and i add the .setRepairItem method, announced the ItemStack, where indicated the target item. Maybe i made something wrong? public static Item.ToolMaterial HLOMINITE = EnumHelper.addToolMaterial("another_test:hlominite", 5, 1000, 50.0F, 16.0F, 76).setRepairItem(new ItemStack(ItemsRegister.HLOMINGOT));
    • diesieben07
      [1.12.2] Exception loading model

      By diesieben07 · Posted 1 hour ago

  • Topics

    • BitNet_
      2
      [1.12.2] Exception loading model

      By BitNet_
      Started 8 hours ago

    • JMAS
      6
      Recompile mod with newer version of Java?

      By JMAS
      Started 10 hours ago

    • Electrodynamite12
      1
      .setRepairItem not work

      By Electrodynamite12
      Started 35 minutes ago

    • Hemeroahz
      5
      1.12.2 Crashing Upon Running Forge

      By Hemeroahz
      Started November 27, 2017

    • zhubwat
      9
      Forge not creating version .jar files?

      By zhubwat
      Started January 25, 2016

  • Who's Online (See full list)

    • saxon564
    • JMAS
    • imacatlolol
    • BitNet_
    • AJGingy
    • Lordyammer
    • ItzGenes
    • Nuparu00
    • M1ntcraft3r
    • fcelon
    • KolonilGamer
    • Choonster
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Access restrictions with Forge?
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community