Hello, like 2 months ago I start a server, but recently my router restarted and from that day I can't open the server again. I have redirected ports but my friends still cannot my server. Can someone help me?
Sorry for my bad English ¯\_(ツ)_/¯
Sorry for my bad English ¯\_(ツ)_/¯
4
Here are some troubleshooting steps.
From what I can see; you're home hosting your server. I recommend moving to a dedicated host or privatizing your server.
Port forwarding CAN BE dangerous and IS NOT recommended!
Sorry about the formatting it got ruined whilst trying to fix spoilers
Anyways here is 2 ways to fix your issue.
Method 1 restarts the process.
Method 2 is to try repair the old process.:
Try starting your server with the following code
If your server cannot bind to a port correctly an error will display like shown

This means that a server is already running and needs to shutdown
If you server successfully starts up and you are able to join it via the server's local IP then you may continue.
Head to the Port forwarding part of method 1 to make sure that your device is using the correct port.
Hope this helps a bit & also be careful! Port forwarding IS dangerous!
From what I can see; you're home hosting your server. I recommend moving to a dedicated host or privatizing your server.
Port forwarding CAN BE dangerous and IS NOT recommended!
Sorry about the formatting it got ruined whilst trying to fix spoilers
Anyways here is 2 ways to fix your issue.
Method 1 restarts the process.
Method 2 is to try repair the old process.:
Method 1
If you are using Windows open command prompt and type "ipconfig /all"
Look for "IPv4 Address". This will be needed for reattaching ports to your PC.
For example; Mine is 192.168.1.106
Go to your router's IP which should be
192.168.254
Paste that into your browser URL and you should be able visit your control panel
if you have trouble with that then scroll to the bottom of this post.
Find your port forwarding section
Select your PC that the server is being hosted on
Example:

MAKE SURE TCP/UDP IS SELECTED
Configure your "server.properties" so that the server port is within the open ports like so

Start your server and you're on the internet!
Method 1
If you are using Windows open command prompt and type "ipconfig /all"
Look for "IPv4 Address". This will be needed for reattaching ports to your PC.
For example; Mine is 192.168.1.106
Go to your router's IP which should be
192.168.254
Paste that into your browser URL and you should be able visit your control panel
if you have trouble with that then scroll to the bottom of this post.
Find your port forwarding section
Select your PC that the server is being hosted on
Example:

MAKE SURE TCP/UDP IS SELECTED
Configure your "server.properties" so that the server port is within the open ports like so

Start your server and you're on the internet!
Method 2
Try starting your server with the following code
@echo off
java -Xms512M -Xmx1024M -XX:MaxPermSize=128M -jar server.jar
pauseIf your server cannot bind to a port correctly an error will display like shown

This means that a server is already running and needs to shutdown
If you server successfully starts up and you are able to join it via the server's local IP then you may continue.
Head to the Port forwarding part of method 1 to make sure that your device is using the correct port.
Having trouble locating your router's IP?
For windows users:
For MacOS users:
- Start your command prompt
- Type ipconfig
- Your router’s IP address is listed next to Default Gateway
For MacOS users:
- Launch System Preferences
- Go to Network > Advanced
- Under TCP/IP, your router’s IP address is listed next to Router
Hope this helps a bit & also be careful! Port forwarding IS dangerous!
Sorry but that doesn't help me :(, I think is a firewall error.
