How can I specify the server port in the client?

I wanted to change my Minecraft server’s port number from the default, so I updated the server-port property to the port I wanted in the file.

Once I restarted the server, I could see that the port had changed.

  • How do Minecraft biomes work?
  • Which blocks require the Silk Touch enchantment, or benefit from it?
  • How can I use Command Blocks to keep players from placing blocks on a vanilla server?
  • Distributing items evenly
  • How do I change NEI to cheat mode?
  • Is there a way to make a visible health bar for mobs other than ender dragons and withers?
  • Now I want the client to use the new port number, but there is no field to specify a non-default port number. So for the server address I am entering, where yyyy is the new port number, but the client does not connect.

    How can I tell the Minecraft client to use the port number I want?

  • Do armor enchantments stack?
  • How do I get the lava in my lava fountain to flow?
  • How to remove Minecraft Villager Careers from their Trading Interface
  • Does /setworldspawn affect /spawnpoint?
  • Why won't survival villagers breed?
  • What are these red lasers?
  • 3 Solutions collect form web for “How can I specify the server port in the client?”

    This is assuming that you are attempting to access the server from outside your LAN (e.g. the IP isn’t 192.168.x.x).

    1) Port Forwarding – If you haven’t port forwarded, do so. Without port forwarding, you’ll only be able to access it from within your LAN. To do so, go into your router’s admin interface and forward the port that you’re going to use to the same port – and specify it to be forwarded to the server’s internal IP, assuming it’s on the same network. If this doesn’t work, but you can ping the machine from an external network (e.g. ping from the cmd on a windows machine), there may be a problem with the server’s firewall.

    2) Using ports that are reserved by other services – Usually on *NIX systems (and many more!) if you try and run the server under a certain port, it may not let you unless you have the relevant access rights. The first 1024 ports, in particular, are reserved for system stuff. If you’re using any port under that, there’s your problem. Change it, and it may work.

    3) Firewall Problems – Make sure you’ve port forwarded first. Then, depending on what OS the server is running on, you’ll need to allow the communication from someone not on your network for the specific port that you’re going to be using for the server. By default, not all ports are open on certain machines and are blocked by a firewall for security reasons. There are plenty of guides for whatever OS you’re using, just find one of those. If you’re running in some Linux environment, it’s probably “iptables” that’s blocking those ports.

    You should be able to access the port of your minecraft server the same place you port forwarded. Just change 25565 – 25565 to be what you would like it to be.

    Sounds like you need to port forward on your router. Go into your router’s admin, port forwarding, and forward port 25566 (let’s say it’s 25566) to 25566 on the LAN computer on which your server is running. So you would specify something like for that computer in the port forward config. You’re basically telling the router which computer on your LAN to send these packets to for incoming traffic specifying that port.

    If you have two routers in succession, you must port forward on both. From the first router to the second, then from the second router to the computer in question.

    We love Playing Games, especially Video Games.