server

115 views
Skip to first unread message

lewisgo...@gmail.com

unread,
Feb 18, 2016, 3:00:55 PM2/18/16
to Coding in Minecraft
Hi
.i have completed setting up server but how do i add friends? also page 16 installing craft bucket on windows step 3 says open cmd and type ........     to start?


Thanks
Lewis

woogadoo

unread,
Feb 18, 2016, 3:19:36 PM2/18/16
to Coding in Minecraft
Hey Lewis - thanks for posting and welcome to the forum. Sounds like there might be a typo in the book (I haven't seen the finished copy myself yet - out of curiousity, where did you find a copy?). Here's what the text should say:

-=-=-=-

Installing CraftBukkit
As mentioned previously, we have to run an older version of Minecraft. 1.6.4, to be precise. Because of this, the server version of CraftBukkit has to match the version of Minecraft as well.
To download the 1.6.4 version of CraftBukkit, visit: [http://tcpr.ca/craftbukkit]. The file you need to download is called craftbukkit-1.6.4-R2.0.jar. Rename this file craftbukkit.jar and place it in the Minecraft folder in your McMyAdmin folder.


Windows users
If you installed McMyAdmin as a service on your computer, then the service should be automatically running when your computer starts up. If you chose not to start it as a service, the you can run it by doing the following:
1. Open a command prompt by searching for cmd.exe from the Start menu
2. Navigate to c:\Users\%USERNAME%\AppData\Local\McMyAdmin\ - this is the default location where McMyAdmin would have been installed, and %USERNAME% stands for your user account in Windows.
3. Start McMyAdmin by typing `McMyAdmin.exe`
Once McMyAdmin is running, you can view your server in a browser window, like Google Chrome, Safari, etc. and visiting the following address: http://localhost:8080 (or whichever port you chose during configuration - 8080 is the default)
(If you have a firewall program enabled, such as Windows Firewall, make certain that you follow the prompts to enable access to McMyAdmin when asked.)

-=-=-=-

If you'd like to add friends and they're on your local network, then they should be able to see your server and join it. If your computer is open to the public, then you may want to consider adding your friends to a whitelist in McMyAdmin: http://clients.fragnet.net/knowledgebase/79/Easy-Guide-to-Whitelisting.html 


lewisgo...@gmail.com

unread,
Feb 19, 2016, 2:40:59 AM2/19/16
to Coding in Minecraft
i bought the book at whsmith in Manchester. 
Still cant get friends to join, do i need to change router settings port forwarding etc or is it a case of them just inputting my server address.
Great book tho.

Thanks 
Lewis

Jim Christian

unread,
Feb 19, 2016, 3:47:48 PM2/19/16
to Coding in Minecraft
Thanks, glad you're enjoying it!

Yes, if you want your friends to be able to connect to your server you're going to have to punch a hole in the firewall. I think the default Minecraft server port is 25565, which you would then forward to your server computer. This all gets a little tricky as every router is different, so you'll have to be comfortable with changing settings on it, restarting it etc. Make sure you take a backup of the current config if you can, or at least screenshot the settings you're about to change. Also, warn anyone you live with/answer to and let them know what you're doing. Remember that whenever you open a port on your router, you're giving someone a potential way into your network.

Most routers will change their IP every so often, so you'll need to be able to give your friends the IP address of the server. whatismyip.com is a good place to find out what your external IP address is. If your router supports Dynamic DNS, you can give it a free address instead (https://www.noip.com/free) so that you don't have to constantly look for the changed IP address when you and your friends want to game.

If you're on a laptop, or wireless connection, you may also find that your internal IP address changes every now and again when you establish a connection between it and the router. If the address changes all the time, then the port forwarding will stop working when you get a different IP address. To ensure you get the same address when you connect all the time, you want to look at MAC (not as in Apple Computer, but as in Media Access Control) address. Every computer device has one, and it's unique to that device. You can tell your router "Hey - every time you see a computer with a MAC address of blah blah blah, give it the IP address 192.168.x.x (or however your IP addressing is managed)". You'll usually find settings for this under something like DHCP reservation. You want to 'reserve' the same IP for your computer every time you connect. It's like always getting the best table at your favourite restaurant. 

So, checklist:

  • Figure out your internal addressing first and reserve the same IP address for your computer with DHCP reservation
  • Use port forwarding to forward port 25565 from the router to the device's now reserved IP address
    • If you have Port Triggering on your router, you can always tell your friends that your server port is on port 45000 or something similar, then tell your router to send traffic from 45000 to 25565. This keeps your internal network ports secure and less prone to attack.
  • Check your computer's firewall settings and make certain that you've allowed traffic in and out on the port that you specified. It's no good letting your traffic through the router if it gets blocked at the PC.
  • Check if your router support Dynamic DNS services - if it does, it could potentially make things easier. Use that for your address, or instead figure out your public IP address with https://www.whatismyip.com/ 
  • Backup / screenshot everything in case mistakes are made.
  • Let your parents know what you're doing.
  • Whitelist your friends coming into your server

If it sounds overly technical, that's because it is :-) These things aren't always naturally easy to do. Don't give up though, being able to game with your friends on your own server is awesome. Good luck with it!

Standard disclaimer: I'm not responsible if you break your router, computer or lose your configuration!

bob...@gmail.com

unread,
Mar 17, 2016, 8:31:04 AM3/17/16
to Coding in Minecraft
Hey Jim, great stuff! I'm not quite this far.... Getting a 404 error on first running of McMyAdmin on my Windows10 laptop. I work in a school so thought maybe it was a firewall issue, so disabled the firewall and still got error.

I did install McMyAdmin as a service and it is running.... checked with Task Manager. 

I chose the default directory for install, which is my local %appdata% folder. I've been searching the McMyAdmin forums but nothing yet....

TIA,
Bob Irving
Porter-Gaud School
Charleston, SC

Jim Christian

unread,
Mar 17, 2016, 12:29:24 PM3/17/16
to Coding in Minecraft
Hey Bob - sorry I didn't get a chance to get to your DM earlier today. Thanks for sorting out the other copy for me as well.


As the service is running locally, it shouldn't be a firewall issue - goodness knows Windows has its quirks, but the firewall usually won't restrict you from connecting to another port running on your own machine.

If you go into the McMyAdmin folder and edit mcmyadmin.conf (you can use a text editor like Atom), what is the port that's listed? See below my Windows 10 conf file - listing the webserver port as 8080.


bob...@gmail.com

unread,
Mar 17, 2016, 3:29:01 PM3/17/16
to Coding in Minecraft
Thanks for the reply. It says it's 8080.

I checked the logs and it says there is another service running there. I've done a lot of googling about finding out what process is running on different ports but haven't been able to figure out what's running on 8080. 

Since I set up McMyAdmin as a service, and I rebooted my computer, is it possible that it's already running? And it's detecting itself?

Bob

Jim Christian

unread,
Mar 17, 2016, 4:02:21 PM3/17/16
to Coding in Minecraft
No, that's highly unlikely. As a service it will be running, as you say, but something else on your system is obviously conflicting with it.

Not to worry though - there are over 65000 ports available to choose from! I would do the following:
  • Stop the McMyAdmin service in your Services control panel
  • Edit the mcmyadmin.conf and change the port to 8081 (nothing natively runs off of that port)
  • Save mcmyadmin.conf
  • Either start the service back up again or reboot and see what happens.

bob...@gmail.com

unread,
Mar 22, 2016, 1:25:03 PM3/22/16
to Coding in Minecraft
OK, got McMyAdmin running as a service, launched the server. Then launched Minecraft (profile set to 1.6.4), connected to the server, it opened for a second, and ..... boom. Big crash. I am not sure what to check for, and I hate to do this, but here is the MC crash log. Maybe someone could point me in the right direction for trouble shooting? I'm running all this on my Win10 laptop, btw.

---- Minecraft Crash Report ----
// Quite honestly, I wouldn't worry myself about that.

Time: 3/22/16 1:21 PM
Description: Rendering Tile Entity

java.lang.NullPointerException
at abn.a(SourceFile:110)
at abn.h(SourceFile:234)
at biy.a(SourceFile:22)
at biy.a(SourceFile:17)
at biy.a(SourceFile:12)
at bjd.a(SourceFile:106)
at bjd.a(SourceFile:98)
at bfl.a(SourceFile:333)
at bfe.a(SourceFile:845)
at bfe.b(SourceFile:695)
at atv.S(SourceFile:686)
at atv.d(SourceFile:619)
at net.minecraft.client.main.Main.main(SourceFile:101)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at abn.a(SourceFile:110)
at abn.h(SourceFile:234)
at biy.a(SourceFile:22)
at biy.a(SourceFile:17)
at biy.a(SourceFile:12)

-- Tile Entity Details --
Details:
Name: MobSpawner // asj
Block type: ID #52 (tile.mobSpawner // api)
Block data value: 0 / 0x0 / 0b0000
Block location: World: (-1,52,50), Chunk: (at 15,3,2 in -1,3; contains blocks -16,0,48 to -1,255,63), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Actual block type: ID #52 (tile.mobSpawner // api)
Actual block data value: 0 / 0x0 / 0b0000
Stacktrace:
at bjd.a(SourceFile:106)
at bjd.a(SourceFile:98)
at bfl.a(SourceFile:333)
at bfe.a(SourceFile:845)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [bdi['ltm2'/300, l='MpServer', x=-8.50, y=70.62, z=1.50]]
Chunk stats: MultiplayerChunkCache: 315
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 514647 game time, 514647 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 27 total; [bdi['ltm2'/300, l='MpServer', x=-8.50, y=70.62, z=1.50], sf['Wolf'/129, l='MpServer', x=-55.50, y=72.00, z=80.16], sf['Wolf'/197, l='MpServer', x=53.38, y=65.00, z=12.50], sf['Wolf'/198, l='MpServer', x=49.50, y=65.00, z=12.50], sf['Wolf'/199, l='MpServer', x=47.50, y=66.00, z=-2.28], sf['Wolf'/136, l='MpServer', x=-47.31, y=71.00, z=32.50], sf['Wolf'/200, l='MpServer', x=53.44, y=65.00, z=7.75], sf['Wolf'/137, l='MpServer', x=-47.50, y=71.00, z=35.38], sf['Wolf'/201, l='MpServer', x=51.69, y=70.00, z=55.50], sf['Wolf'/202, l='MpServer', x=55.06, y=74.00, z=54.31], sf['Wolf'/139, l='MpServer', x=-35.41, y=65.00, z=77.50], rr['Cow'/150, l='MpServer', x=-19.63, y=67.00, z=26.63], sf['Wolf'/151, l='MpServer', x=-26.50, y=67.00, z=45.88], sf['Wolf'/152, l='MpServer', x=-29.16, y=68.00, z=61.69], sf['Wolf'/153, l='MpServer', x=-38.13, y=65.00, z=69.50], sf['Wolf'/155, l='MpServer', x=-29.50, y=72.00, z=63.91], sf['Wolf'/156, l='MpServer', x=-23.94, y=71.00, z=73.50], sf['Wolf'/157, l='MpServer', x=-26.50, y=69.00, z=76.50], sf['Wolf'/185, l='MpServer', x=46.16, y=64.00, z=-19.38], sf['Wolf'/186, l='MpServer', x=40.50, y=65.00, z=-12.50], sf['Wolf'/187, l='MpServer', x=47.47, y=65.00, z=-5.75], sf['Wolf'/188, l='MpServer', x=45.50, y=66.00, z=11.50], rr['Cow'/124, l='MpServer', x=-75.72, y=70.00, z=69.34], sf['Wolf'/189, l='MpServer', x=41.50, y=67.00, z=11.50], sf['Wolf'/190, l='MpServer', x=42.28, y=67.00, z=22.00], sf['Wolf'/126, l='MpServer', x=-55.13, y=67.00, z=24.72], sf['Wolf'/127, l='MpServer', x=-48.53, y=71.00, z=33.13]]
Retry entities: 0 total; []
Server brand: craftbukkit
Server type: Non-integrated multiplayer server
Stacktrace:
at bdd.a(SourceFile:284)
at atv.b(SourceFile:1761)
at atv.d(SourceFile:628)
at net.minecraft.client.main.Main.main(SourceFile:101)

-- System Details --
Details:
Minecraft Version: 1.6.4
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 95242744 bytes (90 MB) / 205725696 bytes (196 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
AABB Pool Size: 19511 (1092616 bytes; 1 MB) allocated, 2 (112 bytes; 0 MB) used
Suspicious classes: No suspicious classes found.
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Launched Version: 1.6.4
LWJGL: 2.9.0
OpenGL: Intel(R) HD Graphics 4600 GL version 4.3.0 - Build 10.18.15.4256, Intel
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Pack: Default
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 429 (24024 bytes; 0 MB) allocated, 80 (4480 bytes; 0 MB) used

bob...@gmail.com

unread,
Mar 22, 2016, 1:29:23 PM3/22/16
to Coding in Minecraft
and one more thing......

Checked the McMyAdmin log and it says: lost connection: disconnect.genericReason

Hmm.

Bob

Jim Christian

unread,
Mar 23, 2016, 1:58:22 AM3/23/16
to Coding in Minecraft
Very odd indeed - what happens if you just try the latest Minecraft profile and normal Minecraft server?

simonr...@gmail.com

unread,
Aug 28, 2016, 5:38:45 PM8/28/16
to Coding in Minecraft
I also got the same error this evening. Yesterday I had set it all up and it was working well, and it continued to work this morning. I have tried running Minecraft without the server and there was no problem. It seems to just close the connection down itself within a few seconds. I noticed that it had a blue flask in the inventory, which I am fairly sure wasn't there when it was working. 

Any help would be appreciated.

Many thanks
Reply all
Reply to author
Forward
0 new messages