41

PortMiner 5 - Create public servers without portforwarding

Collectable

PortMiner

  • 19,584
    Views, 66 today
  • 4,298
    Downloads, 10 today

Get Embed Codes

Forum:
HTML:
Link:
avatar
smithy21200
Level 32 : Artisan Engineer
18
Open for suggestions! Post them in the comments if you have any.
Please note PortMiner is compatible with all Minecraft versions, regardless of what the Game Version is shown as on PMC.

USAGE INSTRUCTIONS ON THE WIKI (CLICK HERE)

Direct Download Link (No advertisments)
PortMiner on GitHub

NEW: Do you use Bukkit or Spigot? Try the PortMiner Plugin for Bukkit/Spigot 1.11, just drag and drop the plugin into your server's plugin folder and run!

What does this do?
PortMiner lets you create public servers, that people can connect to externally without the need for portforwarding or Hamachi. This is because some people either can't portforward or don't wish to.

How does it work?
PortMiner uses Universal Plug and Play to make port mappings on your router. You are the host of the server, and the people connecting to your server connect to you directly, just like any other public server. Some programs you may use already use this. Peer to peer filesharing software uses UPnP to open the ports to allow incoming and outgoing connections, and even Skype uses UPnP for the same reason.

It's not working for me.
PortMiner may not work for you for many reasons ranging from UPnP not being enabled/supported by your router, or your router may not be supported by the Cling Library (used to open the ports). Firstly, before asking for help read the "PortMiner Manual" file that comes with the application, and look in the Troubleshooting section.

Warning about port forwarding:
PortMiner uses UPnP to map ports, which is the same as port forwarding. While port forwarding itself can not damage your router, it opens a port directly to your computer, and thus can let malicous connections get through. Be sure to only share your IP address with people you trust.

I found a bug./Is it supposed to do this?/Any other question not answered in the manual, or on this page:
If you find any bugs or have any unanswered questions feel free to reply and I'll reply next time I'm on PMC.

Notes:
I am not responsible for any damage to your computer even though it is incredibly unlikely, I have to put this here.
Contains LGPL software from: https://github.com/4thline/cling
Progress: 100% Complete
Game Version:Minecraft 1.11
Tags:Portforward, Server, Automatic, UPnP

Note: Showing last 25 of 26 logs.

PortMiner 5 : 03/27/2017 3:58:22 pm3/27/17

When running on Linux, now creates PortMiner directory in the home directory.

PortMiner 4.91 : 03/24/2017 3:09:34 pm3/24/17

Changed the interval that makes PortMiner check if MinTTY is still running to a smaller value (2500ms), meaning it should respond faster to a server close.

Update #24 : 03/12/2017 4:15:25 pm3/12/17

Cleaned formatting and added LGPL notice.

PortMiner 4.8 : 11/03/2016 5:00:20 pm11/03/16

Updated libraries

PortMiner 4.7 : 05/04/2016 5:50:23 pm5/04/16

Updates starting again, very minor bug fix.

PortMiner 4.6 : 03/12/2016 8:05:04 am3/12/16

Fixed large bug where PortMiner would hang when checking if the server jar existed.

PortMiner 4.5 : 03/11/2016 2:35:58 pm3/11/16

Changed the host for update checking to a much more reliable host (GitHub).

PortMiner 4.4 : 03/08/2016 3:34:22 pm3/08/16

PortMiner is now no longer just for Minecraft. If you want to set up another server manually without port forwarding, such as Gmod, open the PortMiner configuration, set the port, and set run-server to false. PortMiner will then run without starting the Minecraft server, only opening the specified port. The protocol can also be set (TCP or UDP) as run-server-false-protocol.

PortMiner 4.3 : 03/05/2016 6:39:24 pm3/05/16

Cleaned up code.

PortMiner 4.2 : 02/29/2016 5:43:44 pm2/29/16

Fixed updater bug, continuously saying there was an update when it was the latest version.
Added feedback dialog (only one time).

PortMiner 4.1 : 02/29/2016 1:34:03 pm2/29/16

Progress bar is back.

PortMiner 4 : 02/28/2016 12:31:48 pm2/28/16

Complete rewrite of code. Runs better and has much, much better multi-OS support (still not for OSX yet!)

- More user friendly, easier to select server jar file, remembers selection, instead of having to manually change the configuration parameter.

- Code is cleaner.

- Progress bar removed for now, as it's pretty pointless.

- A lot more stable.

PortMiner 3.6 : 02/22/2016 4:36:25 pm2/22/16

PortMiner now checks if it was correctly closed. This is quite important as if PortMiner crashes there is a possibility port 25565 may be left open, however now you will be alerted if PortMiner crashed.
You can now manually select the jar file instead of having to edit the configuration, and it's location will be saved.

PortMiner 3.5 : 02/10/2016 3:17:54 pm2/10/16

Changed host address for the update checker as the last one messed up for some reason.

PortMiner 3.4 : 01/19/2016 4:37:38 pm1/19/16

If the server jarfile can not be found and you choose not to download the official server when prompted, a file selector box will open and allow you to manually select the server jarfile, to make it more user friendly if for some reason you don't want to set it in the configuration.

PortMiner 3.3 : 01/16/2016 6:24:31 pm1/16/16

Added a progress bar when starting PortMiner so you can see what it's doing, or if an error occurs, where it crashed.

PortMiner 3.2 : 01/10/2016 7:11:22 am1/10/16

The logger now uses a much more readable timestamp instead of the Unix timestamp.

PortMiner 3.1 : 01/07/2016 12:37:28 pm1/07/16

Cleaned up some of the code after implementing Linux, and now should be basically the same as Windows when running on Linux. Xterm is still required, and will probably always be, most Linux distributions come with this pre-installed.

PortMiner 3 : 01/06/2016 5:55:36 pm1/06/16

Partial Linux support!

PortMiner 2.9 : 01/05/2016 5:36:39 pm1/05/16

The logger outputs to a logfile now (like loggers should), instead of just to the console.

PortMiner 2.8 : 01/04/2016 2:39:38 pm1/04/16

If it can't find the server jar, it will prompt you to download the official Minecraft server jar, if you wish to use Bukkit, Spigot or another platform, click No when it prompts you (or place the jar before running PortMiner once).

PortMiner 2.7 : 01/04/2016 9:38:13 am1/04/16

Implemented basic update checker, beginning to implement Linux (and possibly) Mac support. They're not supported yet but I've implemented detection of the user's operating system.

Update #4 : 01/04/2016 7:40:24 am1/04/16

Now catches errors correctly, and displays a dialog box giving a very brief description of the error. Also now parses the configuration all in one once you run PortMiner, instead of loading individual parameters from the configuration throughout the code.

Update #3 : 01/03/2016 4:48:28 pm1/03/16

More configuration options for the server environment.

Update #2 : 01/03/2016 3:21:36 pm1/03/16

Added support for changing the amount of RAM the server has accessible. This can be changed in the portminer.properties file.

Comments : 207

Join us to post comments.

Show Comments

1 - 50 of 207

I'm trying to run this on an Ubuntu server, but I keep getting an error on launching it, as follows:

Exception while creating logging file.
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1012)
at com.inicf.PortMiner.Logger.log(Logger.java:30)
at com.inicf.PortMiner.PropParse.checkPropFile(PropParse.java:33)
at com.inicf.PortMiner.PropParse.getProperty(PropParse.java:75)
at com.inicf.PortMiner.PortMiner.main(PortMiner.java:50)

love the project, would love it even more if I could run it!
  • smithy21200
  • Level 32
  • Artisan Engineer
  • March 25, 2017, 1:35 pm
Looks like an error when trying to make the log file. I'm not sure where it's going wrong though. Does PortMiner say anything about it not detecting your operating system. Saying something like "[WARN] Couldn't get OS"?
  • smithy21200
  • Level 32
  • Artisan Engineer
  • March 25, 2017, 1:42 pm
Also if you're running a Spigot or Bukkit server it may be better using the plugin version of PortMiner which is in the PMC post, as the plugin works across all systems.
It doesn't say anything on that subject; I posted the entirety of the exception that gets dumped to terminal. :/

I'm actually running Sponge (specifically, SpongeForge); not sure how hard it would be, but it could be worth the time to port PortMiner to Sponge plugin?
  • smithy21200
  • Level 32
  • Artisan Engineer
  • March 27, 2017, 11:59 am
Turns out the issue may be that the directory for PortMiner never exists because it's not been created. Just fixed this hopefully, so try the latest release and see if that works for you.
  • smithy21200
  • Level 32
  • Artisan Engineer
  • March 26, 2017, 2:32 pm
I'll definitely look into making a Sponge plugin. After looking at the code it looks like there's probably an issue with PortMiner finding your home directory as you're on Linux. Best way to fix this currently would be to release a new version that lets you manually specify a directory for PortMiner's files. So I should release that sometime soon.
no Virus in dis rigt ?
  • smithy21200
  • Level 32
  • Artisan Engineer
  • March 15, 2017, 10:01 am
Nope
OK
  • Iz_Da_Bait
  • Level 1
  • New Miner
  • March 13, 2017, 6:09 pm
Thanks for your reply to my other comment. Anyway i love this however it stopped working after i got my new router. but its still local so i dont care but is there any way to add more ram to this? ive been trying but it seems to not work as it is using mintty.
  • smithy21200
  • Level 32
  • Artisan Engineer
  • March 14, 2017, 8:42 am
If you're only using your server locally you shouldn't need to use PortMiner, but if you still want to use PortMiner for some reason, you can give the server more RAM by editing the "xmx" value in portminer.properties. The default is 1024. It's measured in megabytes so 1024=1GB and 2048=2GB, etc.
how use it ???
  • smithy21200
  • Level 32
  • Artisan Engineer
  • March 13, 2017, 4:11 pm
  • Iz_Da_Bait
  • Level 1
  • New Miner
  • March 12, 2017, 1:22 pm
is there any way to automatically update this? (like a command or .bat)
thanks
  • smithy21200
  • Level 32
  • Artisan Engineer
  • March 12, 2017, 2:35 pm
Not currently, but I may implement this in the future.
  • Mc_Mark
  • Level 1
  • New Miner
  • February 3, 2017, 1:56 pm
how do i make this work with a modpack server?

it would be nice if you could point me to a video on YT or something, but if not that's fine.
  • smithy21200
  • Level 32
  • Artisan Engineer
  • February 13, 2017, 2:42 pm
To use with a modpack server, you just set the server up as usual, place PortMiner in the directory with the server files, and run it like normal.
what should i write n internal ip ?
  • smithy21200
  • Level 32
  • Artisan Engineer
  • February 13, 2017, 2:40 pm
You shouldn't need to set the internal IP unless you have to. If you do, use ipconfig in CMD to find your internal (local) IP address and enter it. Might be easier to google how to find your internal IP if this wasn't enough.
What IP do I put in?
  • smithy21200
  • Level 32
  • Artisan Engineer
  • February 13, 2017, 2:41 pm
For you connecting to your server you should be able to use localhost (127.0.0.1). The people joining should use your external IP, which can be found by searching on Google "What is my IP", and it should show in a box right at the top.
  • Penwell
  • Level 1
  • New Miner
  • October 15, 2016, 3:11 pm
Failed to fork child process: Resource temporarily unavailable. That is what I get every time I run portminer. Please help. :/
  • Penwell
  • Level 1
  • New Miner
  • October 15, 2016, 3:12 pm
and also that mintty died unexpectedly
  • smithy21200
  • Level 32
  • Artisan Engineer
  • November 3, 2016, 12:29 pm
What operating system are you running?
  • Penwell
  • Level 1
  • New Miner
  • December 27, 2016, 3:29 pm
Every time I try to use forge for a server, it crashes PortMiner
  • Penwell
  • Level 1
  • New Miner
  • December 26, 2016, 12:22 pm
Does portminer work for a modded server?
  • Penwell
  • Level 1
  • New Miner
  • December 26, 2016, 12:06 pm
I am using Windows 10
  • smithy21200
  • Level 32
  • Artisan Engineer
  • February 13, 2017, 2:42 pm
PortMiner might not be the problem, have you tried running the Forge server independently to see if it's actually the forge server that's the issue?
  • RoseThorn
  • Level 1
  • New Miner
  • August 9, 2016, 9:21 am
it opens the ports then closes right after and i can't get people to be able to join because of that. Please help me!
  • GodsiKing
  • Level 1
  • New Miner
  • June 24, 2016, 7:44 am
Which ip i need to use?
  • Savage4Dayz
  • Level 12
  • Journeyman Architect
  • July 4, 2016, 12:25 pm
Public IP
  • Planetjoshua
  • Level 20
  • Expert Architect
  • December 7, 2016, 12:16 pm
Its only really for people you trust.
It seems to open, briefly, open the correct ports and then close shortly after and also close the ports?
Same here, I think it said "500 internal server error" or something like that
Where do I find the IP
  • Iz_Da_Bait
  • Level 1
  • New Miner
  • March 13, 2017, 6:27 pm
type "whats my ip" in google
  • GameCode
  • Level 3
  • Apprentice Miner
  • June 10, 2016, 10:08 am
I can open my localhost server with it in an cmd window, but does it really work? (i cannot test if someone can join) but still you actually did an great job if i see the comments
  • Agent003
  • Level 14
  • Journeyman Ranger
  • June 1, 2016, 11:22 am
Does this work with PocketMine-MP? Pocketmine is a server jar for Minecraft: Pocket Edition.
  • smithy21200
  • Level 32
  • Artisan Engineer
  • June 3, 2016, 1:53 pm
As long as you set the server jar that PortMiner runs to PocketMine-MP, and the port PortMiner opens to match PocketMine-MP, then I don't see why it wouldn't work.
  • bob1389
  • Level 1
  • New Miner
  • May 29, 2016, 1:36 am
can u make a step by step for a gmod portminer please
How my friends can join?
Is there a way to add plugins to the server i create? How would i?
  • smithy21200
  • Level 32
  • Artisan Engineer
  • May 25, 2016, 11:27 am
Add plugins as you would a normal server, by downloading them and putting them inside the plugins folder while running a server that supports plugins such as Spigot or Bukkit.
I got it! Thanks!
what IP do my friends use to join?
nvm i found out
  • GodsiKing
  • Level 1
  • New Miner
  • June 24, 2016, 7:18 am
But i didn't, can you send where i can find it?
  • InkedPug
  • Level 10
  • Journeyman Taco
  • May 13, 2016, 9:56 pm
Does this work with Windows 10?
Yes, I use it in Windows 10, and it works beutifully.
  • smithy21200
  • Level 32
  • Artisan Engineer
  • May 15, 2016, 11:26 am
Should do
  • Savage4Dayz
  • Level 12
  • Journeyman Architect
  • May 5, 2016, 1:42 pm
When I open the manual nothing shows up.
  • Savage4Dayz
  • Level 12
  • Journeyman Architect
  • May 5, 2016, 1:46 pm
Oh btw when people use my public IP they cannot join. The server is open and I cheked the server properties file it says online mode true.
  • Ali_Army107
  • Level 14
  • Journeyman Engineer
  • May 5, 2016, 6:44 am
Does this work on MAC?
  • smithy21200
  • Level 32
  • Artisan Engineer
  • May 5, 2016, 9:58 am
No tested OSX support yet, however you can try using it and it may or may not work, use it at your own risk on OSX.
  • Ali_Army107
  • Level 14
  • Journeyman Engineer
  • May 5, 2016, 10:02 am
yea, just tried
and failed
  • smithy21200
  • Level 32
  • Artisan Engineer
  • May 5, 2016, 10:30 am
Sorry about that, hopefully soon I'll have enough time and maybe a computer running OSX to make PortMiner support it, but I can't be sure right now.
  • Ali_Army107
  • Level 14
  • Journeyman Engineer
  • May 5, 2016, 10:35 am
ok, bye.
Great app! I'm going to download it right now!
  • smithy21200
  • Level 32
  • Artisan Engineer
  • May 5, 2016, 9:59 am
Thanks!
It works! Here's a diamond!
will this work on linux?
  • smithy21200
  • Level 32
  • Artisan Engineer
  • May 2, 2016, 1:46 pm
Yes, it has Linux support.
How do I set it to open both UDP and TCP ports?
If thta's not already a thing, how about implementing it?
That'd be great. Also, what Ip do other people use to connect to the server?
  • smithy21200
  • Level 32
  • Artisan Engineer
  • April 1, 2016, 2:38 am
Other people have to use your external IP to connect.
For now, to open both UDP and TCP ports you can run two instances of PortMiner, each one using a different configuration, both with run-server set to false, and one with the protocol in the configuration set to TCP, and the other set to UDP.
  • NikonJR
  • Level 5
  • Apprentice Ranger
  • March 28, 2016, 1:56 pm
What IP do I put in the Internal IP config if I'm having problems? The IP of the computer the server is on, or the IP of the router?
  • smithy21200
  • Level 32
  • Artisan Engineer
  • March 28, 2016, 3:00 pm
Your computer's internal IP address which you can usually get from ipconfig.
Usually starts with 192.168, or 10.0
  • polarluke2
  • Level 5
  • Apprentice Blacksmith
  • March 17, 2016, 4:26 pm
Very helpful. Thank you for creating this. <3 :D :D
  • smithy21200
  • Level 32
  • Artisan Engineer
  • March 18, 2016, 3:53 pm
Thanks for the positive feedback :)
Hey, I'm getting the error "PortMiner did not close correctly. If the issue continues, Please report it."
and i am reporting it. Thanks! Looking forward to playing with my friends!
Also, I'm getting the error "MinTTY was not found"
  • smithy21200
  • Level 32
  • Artisan Engineer
  • March 15, 2016, 10:20 am
The issue here is that you didn't extract MinTTY. When you download PortMiner, make sure to extract the bin folder into the same directory as PortMiner.

1 - 50 of 207

Show Comments