Jump to content

Your server needs to have a static IP address, so it won't change. You can set that quite easily within the network settings of the OS.

 

Afterwards you need to enable port forwarding for that IP address within your router.

You need to select the right protocol (in this case TCP) and port and forward all incoming trafic to that IP address. Depending on the router, the settings can look quite differently.

 

If you want more help, post a screenshot of the forwarding rule you enabled, but don't show your external IP address.

🇩🇪 🇪🇺 🏴‍☠️ 

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13877439
Share on other sites

Link to post
Share on other sites

Screenshot_51.thumb.png.c47f00afae62c606d133bdcb0dbbd503.png

32 minutes ago, Senzelian said:

Your server needs to have a static IP address, so it won't change. You can set that quite easily within the network settings of the OS.

 

Afterwards you need to enable port forwarding for that IP address within your router.

You need to select the right protocol (in this case TCP) and port and forward all incoming trafic to that IP address. Depending on the router, the settings can look quite differently.

 

If you want more help, post a screenshot of the forwarding rule you enabled, but don't show your external IP address.

 

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13877529
Share on other sites

Link to post
Share on other sites

12 minutes ago, priv4cy said:

Screenshot_51.thumb.png.c47f00afae62c606d133bdcb0dbbd503.png

 

The Server IP address is of course the IP address of your minecraft server. So there you put in the IP address that you assigned manually to your server.

You didn't need to block that off, since it's a private IP address. IPs that start with 10. 172. or 192. are private IP addresses.

Anything else are public IP addresses, which you shouldn't show publically, unless you know what you're doing.

 

Anyway, back to port forwarding:

All the fields that say port should be the same in this case. That's were you put in the port that your MC server uses. It's either a standard port that has been assigned to your MC server automatically, or you've set it yourself.

 

TCP is the correct protocol.

Some other services might use the UDP protocol, for which you'd need to set up a seperate port forwarding rule.

But I'm fairly certain that a MC server only communicates over TCP.

 

You should give the port forwarding rule a name, to better identify it later.

Remote host IP can be left empty and LoopBack should not be enabled.

 

Here is an example:
image.png.b4f9fe0178937c1ba405fe110e28d128.png
(Keep in mind that the numbers and address I've set are of course not the correct ones)

🇩🇪 🇪🇺 🏴‍☠️ 

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13877552
Share on other sites

Link to post
Share on other sites

1 minute ago, Senzelian said:

The Server IP address is of course the IP address of your minecraft server. So there you put in the IP address that you assigned manually to your server.

You didn't need to block that off, since it's a private IP address. IPs that start with 10. 172. or 192. are private IP addresses.

Anything else are public IP addresses, which you shouldn't show publically, unless you know what you're doing.

 

Anyway, back to port forwarding:

All the fields that say port should be the same in this case. That's were you put in the port that your MC server uses. It's either a standard port that has been assigned to your MC server automatically, or you've set it yourself.

 

TCP is the correct protocol.

Some other services might use the UDP protocol, for which you'd need to set up a seperate port forwarding rule.

But I'm fairly certain that a MC server only communicates over TCP.

 

You should give the port forwarding rule a name, to better identify it later.

Remote host IP can be left empty and LoopBack should not be enabled.

 I didn't really catch you on the server ip address, what should i put there its set automatically to 192.168.1. 

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13877560
Share on other sites

Link to post
Share on other sites

7 minutes ago, priv4cy said:

 I didn't really catch you on the server ip address, what should i put there its set automatically to 192.168.1. 

The IP address of your server.
Your server has a private IP address, which you can find in the network settings of the OS.

 

For example, here you can see the network settings of my PC.

(Sorry for all the screenshots being in german, but you get the point)
Edit: I forgot to add to click properties after you clicked onto your network adapter.
image.thumb.png.086f14cf1fe4d02ecf0b224aa9e70951.png

 

You can also open CMD and type in "ipconfig", and there you will find the same IP address.

 

image.png.595599104515938bebdfbd9e0bba9551.png

 

Again, keep in mind that you want to set a static IP address.
Your router might assign a new IP address to your server at some point, if you don't set a static IP address, which means your port forwarding rule won't work anymore.

🇩🇪 🇪🇺 🏴‍☠️ 

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13877583
Share on other sites

Link to post
Share on other sites

3 minutes ago, Senzelian said:

The IP address of your server.
Your server has a private IP address, which you can find in the network settings of the OS.

 

For example, here you can see the network settings of my PC.

(Sorry for all the screenshots being in german, but you get the point)
image.thumb.png.086f14cf1fe4d02ecf0b224aa9e70951.png

 

You can also open CMD and type in "ipconfig", and there you will find the same IP address.

 

image.png.595599104515938bebdfbd9e0bba9551.png

 

Again, keep in mind that you want to set a static IP address.
Your router might assign a new IP address to your server at some point, if you don't set a static IP address, which means your port forwarding rule won't work anymore.

Screenshot_52.thumb.png.b4472568db13bbb9801dd3c0f9c0173f.png

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13877595
Share on other sites

Link to post
Share on other sites

Just now, Senzelian said:

What exactly is it that you're trying to do?

The port forwarding rule you've set seems to be correct.

Im trying to open a 2 man survival server for me and my friend, if i just start up the server and give him my ip address it wouldn't work because it needs to be portforwaded, i yesterday somehow did it right and it worked, tried it now and it doesn't work because my ip changed right? I tried to give him the new ip - doesn't work

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13877608
Share on other sites

Link to post
Share on other sites

3 minutes ago, priv4cy said:

Im trying to open a 2 man survival server for me and my friend, if i just start up the server and give him my ip address it wouldn't work because it needs to be portforwaded, i yesterday somehow did it right and it worked, tried it now and it doesn't work because my ip changed right? I tried to give him the new ip - doesn't work

Yes, you have to give him your current IP address.

This is the public IP address, so it won't start with 192.

 

5 minutes ago, priv4cy said:

Theres also port triggering one and dmz one, yesterday i think i got it to work by using the dmz one im not sure

Maybe you created a DMZ (Demilitarized Zone).

That would explain why your friend can't reach the server that is behind the DMZ.

 

Can you show me a screenshot of the settings you've enabled in the DMZ settings?

🇩🇪 🇪🇺 🏴‍☠️ 

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13877634
Share on other sites

Link to post
Share on other sites

1 minute ago, Senzelian said:

Yes, you have to give him your current IP address.

This is the public IP address, so it won't start with 192.

 

Maybe you created a DMZ (Demilitarized Zone).

That would explain why your friend can't reach the server that is behind the DMZ.

 

Can you show me a screenshot of the settings you've enabled in the DMZ settings?

YScreenshot_53.png.cb31a0fa337654ab7d103b348606bbed.pngesterday i put there my ipv4 address

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13877639
Share on other sites

Link to post
Share on other sites

11 minutes ago, priv4cy said:

YScreenshot_53.png.cb31a0fa337654ab7d103b348606bbed.pngesterday i put there my ipv4 address

Oh I see.
This is not an actual DMZ. It's called an "exposed host" and as it says, it forwards all traffic to the host (PC) of the IP address that you put in there.

This should not be necessary and can be a security problem, but might be fine on a small scale as yours.

 

Theoretically you shouldn't do this, but if nothing else works, it might be a solution. Not that I recommend doing that tho.

 

Well, I'm not quite sure what else to recommend. Theoretically you set everything up correctly.

There could be something wrong with your subnets, but that seems rather unlikely.

 

Maybe set up a seperate rule on your server to open up port 25565 within its firewall. The firewall could block the traffic.
https://www.tomshardware.com/news/how-to-open-firewall-ports-in-windows-10,36451.html

 

Another solution that might work is to create a VPN tunnel between you and your friend to bring him into your own network.
I used to do that many years ago with Hamachi. You'd have to create a session everytime he wants to join tho.

🇩🇪 🇪🇺 🏴‍☠️ 

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13877672
Share on other sites

Link to post
Share on other sites

2 minutes ago, Senzelian said:

Oh I see.
This is not an actual DMZ. It's called an "exposed host" and as it says, it forwards all traffic to the host (PC) of the IP address that you put in there.

This should not be necessary and can be a security problem, but might be fine on a small scale as yours.

 

Theoretically you shouldn't do this, but if nothing else works, it might be a solution. Not that I recommend doing that tho.

 

Well, I'm not quite sure what else to recommend. Theoretically you set everything up correctly.

There could be something wrong with your subnets, but that seems rather unlikely.

 

Maybe set up a seperate rule on your server to open up port 25565 within its firewall. The firewall could block the traffic.
https://www.tomshardware.com/news/how-to-open-firewall-ports-in-windows-10,36451.html

 

 

Okay ill try that, but i still don't know how did it work yesterday

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13877679
Share on other sites

Link to post
Share on other sites

13 hours ago, Senzelian said:

Oh I see.
This is not an actual DMZ. It's called an "exposed host" and as it says, it forwards all traffic to the host (PC) of the IP address that you put in there.

This should not be necessary and can be a security problem, but might be fine on a small scale as yours.

 

Theoretically you shouldn't do this, but if nothing else works, it might be a solution. Not that I recommend doing that tho.

 

Well, I'm not quite sure what else to recommend. Theoretically you set everything up correctly.

There could be something wrong with your subnets, but that seems rather unlikely.

 

Maybe set up a seperate rule on your server to open up port 25565 within its firewall. The firewall could block the traffic.
https://www.tomshardware.com/news/how-to-open-firewall-ports-in-windows-10,36451.html

 

Another solution that might work is to create a VPN tunnel between you and your friend to bring him into your own network.
I used to do that many years ago with Hamachi. You'd have to create a session everytime he wants to join tho.

It doesn't work, i did the firewall thing still nothing

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13879144
Share on other sites

Link to post
Share on other sites

16 hours ago, Senzelian said:

Oh I see.
This is not an actual DMZ. It's called an "exposed host" and as it says, it forwards all traffic to the host (PC) of the IP address that you put in there.

This should not be necessary and can be a security problem, but might be fine on a small scale as yours.

 

Theoretically you shouldn't do this, but if nothing else works, it might be a solution. Not that I recommend doing that tho.

 

Well, I'm not quite sure what else to recommend. Theoretically you set everything up correctly.

There could be something wrong with your subnets, but that seems rather unlikely.

 

Maybe set up a seperate rule on your server to open up port 25565 within its firewall. The firewall could block the traffic.
https://www.tomshardware.com/news/how-to-open-firewall-ports-in-windows-10,36451.html

 

Another solution that might work is to create a VPN tunnel between you and your friend to bring him into your own network.
I used to do that many years ago with Hamachi. You'd have to create a session everytime he wants to join tho.

I got it to work by filling out port triggering with tcp/udp ports 25565, and dmz thing ipv4 address, also why did you say that you do not recommend doing that? is it safe

Link to comment
https://linustechtips.com/topic/1228957-portforward-question/#findComment-13879394
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×