Failed to bind to port?

Jerakl

New Member
Jul 29, 2019
18
0
0
Hey guys, so I am a complete newb.
How can I get rid of failed to bind to port error?
It says maybe another server is running on that port?
how do I know for sure?
If there is another server running on my :25565 port how do I terminate it?
Or will I have to choose another port?
Thanks for your time, Jerakl
as said before complete newb to FTB

  • What OS are you running? I am running Windows 7 ultimate
  • Are you using minecraft hosting provider or a dedicated/local server not designed for minecraft? No
  • What version of FTB are you using? Latest version.( I don't know specifics)
  • Did you add any mods to the server pack? no
  • What are your server specs? 1GB
  • A good detailed paragraph about the problem^
 

NumerousWaffles

New Member
Jul 29, 2019
1
0
0
not to patronize but make sure you've forwarded your 25565 port and make sure you don't have any other server running on that port such as another vanilla server
 

Greedseed

New Member
Jul 29, 2019
1,107
0
0
if you get that error, it means there is already running a minecraft server with the same port.
Go in you program manager and make sure all java aplications are closed, then start your server again
 

Jerakl

New Member
Jul 29, 2019
18
0
0
as said, complete newb,
I did that in my task manager but it still says the same thing.
 

Jerakl

New Member
Jul 29, 2019
18
0
0
Nope it gives me an error ( I tried 25595/25565)
It gives me a java.net.bindException : Cannot assign requested address : JVM_Bind
Maybe I need to try a different port?
 

Jerakl

New Member
Jul 29, 2019
18
0
0
Hmmmm I tried about 7 different ports, all the same error
The exception was: java.net.BindException: Cannot assign requested address: JVM_Bind
Perhaps a server is already running on that port?
It said that with 6 different ports
 

defakto

New Member
Jul 29, 2019
63
0
0
If you get this error after changing the port you have put the wrong IP address into the server.properties file.

You need to place either 1) No IP address or 2) an IP address to an address assigned to your computer. If 2) is wrong, you will get this error no matter what.

As an example I have two NICs in my server, one set to 192.168.0.101 and one at .105 with an external of 5.5.5.5 (not my real ip)

If I want to run the server any either NIC I leave the IP blank. If I only want incoming connections to goto .105 I put 192.168.0.105.

I never put 5.5.5.5 in the config file. Ever.
 

Jerakl

New Member
Jul 29, 2019
18
0
0
Defakto: please explain in more detail
Oratory: here you go :)
 

Attachments

  • conifg.txt
    595 bytes · Views: 153

defakto

New Member
Jul 29, 2019
63
0
0
Yes:

this line:

server-ip=204.191.130.227

set it to

server-ip=

With no space after the = sign or set it to your server-ip=192.168.0.xxx address.
 

Oratory

New Member
Jul 29, 2019
78
0
0
As Defakto said, leave it blank, unless you really know what you are doing, and even if you know what you are doing, it's best to leave it bland sometimes aswell :p
 

defakto

New Member
Jul 29, 2019
63
0
0
To simplfy what's happening:

You have a phone number you want to ring to your phone in your house, but you're trying to setup the system using the sidewalk outside, not the actual address of your house.
 

Jerakl

New Member
Jul 29, 2019
18
0
0
ok, I think I get it. I'll post again if it doesn't work. But, I need a IP to port forward, do I just use my IP?
Also how do I join the server, it worked but I tried the IP "local" and it didn't work, so what do I put?
 

defakto

New Member
Jul 29, 2019
63
0
0
You need to forward your router to your internal IP address.

You can get this by running

ipconfig or ifconfig from the command line, depending on your OS.

If the computer is on the same computer as your client, you can connect with localhost, or with the IP address from above. If you want friends from another house to connect you give them the IP you had in the server.properties originally and forward the correct ports on your router.
 

defakto

New Member
Jul 29, 2019
63
0
0
No, You give your friends that IP. That's your external IP address. Your internal should be either 192.168.x.x or 10.x.x.x if you haven't messed with router settings.

You forward from the router, to IP 192.168.x.x or 10.x.x.x

You are correct about the port however.