how do i make my server work??
my server is hosted through a ubuntu vm (VMware workstation),using nat it can connect while if i use bridged it say connection failed (on the vm) ,my friends get io.netty.channel.ConnectTimeoutException: connetcion timed out: error, and its modded with the gt new horizion modpack
55 Replies
So what error do you get when setting the VM to bridged mode
And just to confirm, you're doing:


so yeah
If you click configure adapters, what adapter is set?
all

I'd personally change it only to the adapter you use for internet
the d-link is my wifi pen
Then uncheck the rest
k
Though running a server over WiFi is heavily not recommended
well is not like i can do otherwise
im re starting the vm to see what does it say now
it seams like now it can connect to internet
so now how do i know if others can connect??
have someone else try to connect
You would need to get the IP address of the VM
Which would look something like 192.168.x.x
so i do ip a
And then port forward port 25565 TCP from your router, to port 25565 TCP of the IP of the VM
yeah, or
ip -4 a
do i have to use the inet one? (ens33)
it would likely be ens33, yeah
the one without /number?
if it's /32, that part can be ignored and is likely the right value
That number is internal only, so it's fine to share
its /24
That's also fine, just means it's on a standard 1-255 subnet
k
for the forwarding, what should i put in address remote host ip???
blank is typically fine
You want anyone to be able to connect (typically)
k
(As a note, you, from your PC, would connect to this /24 address (without the /24), people outside your network, once port forwarded, would connect to your public IP you get from going to whatismyip or ipinfo.io)
k
public ip : ports ( for friends)
ip :ports (for me) ?
yep
(you need a special setup to allow you to also do public ip:port from inside your network, and it's easier for most not to)
theres a way to have it at a fixed value?
As in both using publicip:port or do you mean something else?
cause that number i got from ip a was different from yesterday
You can go to your router and make the DHCP address static
how
It may be called static addresses, reservations, or MAC address binding
But it depends on your router
You'd have to look it up or explore the settings
i found static ip address
i just have to fill it?
make sure it's for DHCP clients / devices
And not for your WAN connection, as that would kill your internet
its under Server DHCP
Can you share a screenshot?
yes

You'll want to leave that section alone, that's changing what addresses are handed out, rather than making one device always get one address
Is there a section below it?
yes
with written static ip address
Can you share what that looks like too?
Sorry, every router has different interfaces, so it's hard to know if you'd be changing the right part and I don't want to say yes unless I know I'm not going to kill your network :>

chill , you are helping me
Yeah, that's what you want
Copy the mac address from the top table that has the IP address currently assigned to the server
and enter that information in that bottom "Static IP address" box
Name can be whatever you want it remember it as
how do i found teh mac address?
ik the ip address tho
found
do i add the ip i want too?
Yeah
It would've been in the table at the top of the page
e.g. that one:

I would just keep the address the same
and just enter in the mac address you've got
k
done
so now i just have to get the public ip and the port and my friend coul come?
Did everything end up working for your friends?
yes
some of them have the potato pc so cant play but for the other they can
Nice