• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux How to open ports in Ubuntu

ziggy46802

Active Member
Joined
Aug 19, 2012
Messages
418
Reaction score
27
How do you open ports in Ubuntu so that you can host a server on linux?

I nmapped my ip and 3306 is closed, 80 is open, thats it though.
 
steven@steven-desktop:~$ sudo ufw status
Status: active

To Action From
-- ------ ----
7171 ALLOW Anywhere
7172 ALLOW Anywhere
8080 ALLOW Anywhere
80 ALLOW Anywhere
Anywhere ALLOW 127.0.0.1
7171 ALLOW 127.0.0.1
3306 ALLOW Anywhere
7171 ALLOW Anywhere (v6)
7172 ALLOW Anywhere (v6)
8080 ALLOW Anywhere (v6)
80 ALLOW Anywhere (v6)
3306 ALLOW Anywhere (v6)

steven@steven-desktop:~$ sudo ufw allow 3306
Skipping adding existing rule
Skipping adding existing rule (v6)
steven@steven-desktop:~$ sudo ufw allow 3306
Skipping adding existing rule
Skipping adding existing rule (v6)
steven@steven-desktop:~$

And I still get connection refused to my server even though all ports are port forwarded as well....

- - - Updated - - -

well even with ufw disabled i still get connection refused 10061 on my other computer so that doesnt make sense what could it be????
 
It seems like port 3306 is only opened on IPv6, you will also have to open it on IPv4. I don't really know how since i never had this problem before.
But maybe it helps a little. good luck :)
 
I'm hosting .4 TFS 8.60 I don't get any errors when I host it but when I try to log on to it from the ip redirect I get "cannot resolve host" and when I try to log on from 127.0.0.1 it goes to the account manager (on my own computer, not my other computer) and then it just sits there connecting forever....

so what's the problem??

- - - Updated - - -

oh and I don't even see him log in but I get this error in my console

[19:21:23.776] Account Manager has logged in.

[19:21:23.777] [Error - CreatureScript Interface]
[19:21:23.777] data/creaturescripts/scripts/login.lua:eek:nLogin
[19:21:23.777] Description:
[19:21:23.777] data/creaturescripts/scripts/login.lua:38: attempt to compare nil with number
[19:21:23.777] stack traceback:
[19:21:23.777] data/creaturescripts/scripts/login.lua:38: in function <data/creaturescripts/scripts/login.lua:6>
[19:21:23.818] Account Manager has logged out.
 
well I took care of that problem and it just stayed connecting forever, so I tried with your login.lua and it still goes to account manager but then connects forever with nothing coming up in the server window

- - - Updated - - -

Code:
PORT     STATE SERVICE
22/tcp   open  ssh
80/tcp   open  http
631/tcp  open  ipp
3306/tcp open  mysql

this is my nmap of my localhost, my ip redirect is only 80 open (why???)
how do I get 7171 open, I've tried everything and nothing seems to open it.

- - - Updated - - -

when I do sudo ufw allow 7171 it just does this

steven@steven-desktop:~$ sudo ufw allow 7171
Skipping adding existing rule
Skipping adding existing rule (v6)
steven@steven-desktop:~$

how do I make it so it does it for all?
 
I dont get what you mean, how do I open my router on my host and point my host to 192.168.1.103 which is my address on the router?

On your browser type: 192.168.1.1
this will send you to your router's admin panel login screen.
Typically the username is "admin" and the password is "password"(assuming you did not put your own password) it all depends on brand, google your brand for more info, look under your router or refer to you user manual.

After login in, find anything in relation to Ports or "Tools".

Follow instruction on how to Port Forward.(most routers describe how.)
 
Back
Top