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
SilentBot
SilentBot3mo ago
So what error do you get when setting the VM to bridged mode
SilentBot
SilentBot3mo ago
And just to confirm, you're doing:
No description
acciosan?
acciosan?OP3mo ago
No description
acciosan?
acciosan?OP3mo ago
so yeah
SilentBot
SilentBot3mo ago
If you click configure adapters, what adapter is set?
acciosan?
acciosan?OP3mo ago
all
acciosan?
acciosan?OP3mo ago
No description
SilentBot
SilentBot3mo ago
I'd personally change it only to the adapter you use for internet
acciosan?
acciosan?OP3mo ago
the d-link is my wifi pen
SilentBot
SilentBot3mo ago
Then uncheck the rest
acciosan?
acciosan?OP3mo ago
k
SilentBot
SilentBot3mo ago
Though running a server over WiFi is heavily not recommended
acciosan?
acciosan?OP3mo ago
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??
Schroedes
Schroedes3mo ago
have someone else try to connect
SilentBot
SilentBot3mo ago
You would need to get the IP address of the VM Which would look something like 192.168.x.x
acciosan?
acciosan?OP3mo ago
so i do ip a
SilentBot
SilentBot3mo ago
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
acciosan?
acciosan?OP3mo ago
do i have to use the inet one? (ens33)
SilentBot
SilentBot3mo ago
it would likely be ens33, yeah
acciosan?
acciosan?OP3mo ago
the one without /number?
SilentBot
SilentBot3mo ago
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
acciosan?
acciosan?OP3mo ago
its /24
SilentBot
SilentBot3mo ago
That's also fine, just means it's on a standard 1-255 subnet
acciosan?
acciosan?OP3mo ago
k for the forwarding, what should i put in address remote host ip???
SilentBot
SilentBot3mo ago
blank is typically fine You want anyone to be able to connect (typically)
acciosan?
acciosan?OP3mo ago
k
SilentBot
SilentBot3mo ago
(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)
acciosan?
acciosan?OP3mo ago
k public ip : ports ( for friends) ip :ports (for me) ?
SilentBot
SilentBot3mo ago
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)
acciosan?
acciosan?OP3mo ago
theres a way to have it at a fixed value?
SilentBot
SilentBot3mo ago
As in both using publicip:port or do you mean something else?
acciosan?
acciosan?OP3mo ago
cause that number i got from ip a was different from yesterday
SilentBot
SilentBot3mo ago
You can go to your router and make the DHCP address static
acciosan?
acciosan?OP3mo ago
how
SilentBot
SilentBot3mo ago
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
acciosan?
acciosan?OP3mo ago
i found static ip address i just have to fill it?
SilentBot
SilentBot3mo ago
make sure it's for DHCP clients / devices And not for your WAN connection, as that would kill your internet
acciosan?
acciosan?OP3mo ago
its under Server DHCP
SilentBot
SilentBot3mo ago
Can you share a screenshot?
acciosan?
acciosan?OP3mo ago
yes
acciosan?
acciosan?OP3mo ago
No description
SilentBot
SilentBot3mo ago
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?
acciosan?
acciosan?OP3mo ago
yes with written static ip address
SilentBot
SilentBot3mo ago
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 :>
acciosan?
acciosan?OP3mo ago
No description
acciosan?
acciosan?OP3mo ago
chill , you are helping me
SilentBot
SilentBot3mo ago
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
acciosan?
acciosan?OP3mo ago
how do i found teh mac address? ik the ip address tho found do i add the ip i want too?
SilentBot
SilentBot3mo ago
Yeah It would've been in the table at the top of the page
SilentBot
SilentBot3mo ago
e.g. that one:
No description
SilentBot
SilentBot3mo ago
I would just keep the address the same and just enter in the mac address you've got
acciosan?
acciosan?OP3mo ago
k done so now i just have to get the public ip and the port and my friend coul come?
SilentBot
SilentBot3mo ago
Did everything end up working for your friends?
acciosan?
acciosan?OP3mo ago
yes some of them have the potato pc so cant play but for the other they can
SilentBot
SilentBot3mo ago
Nice

Did you find this page helpful?