LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-25-2017, 01:01 PM   #1
warlordkn
LQ Newbie
 
Registered: Sep 2017
Posts: 5

Rep: Reputation: Disabled
trying to host a game server but not visible outside of network


ive tried many searches and possible fixes but i cannot figure out what is keeping my ports closed.

for the sake of testing i tried opening the same ports on my router to my windows machine and the server will run and appear properly on the net. yet for some reason when using the server with ubuntu - xubuntu-core the ports always come back closed.

ive tried disabling ufw, and even adding the ports to it anyway. same result - nothing.

the router set up - https://i.imgur.com/kdFFaNE.jpg
the server being reserved to 105 on the dhcp
i even tried to dmz the server - nothing

oh and yes i can connect to the server on a local computer from within the lan.
 
Old 09-25-2017, 02:36 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,172

Rep: Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504
Can your Ubuntu instance reach the internet? Or to ask the question another way, is the Default Route set the same for your Windows and Ubuntu so the networking supports the traffic?

Have you a firewall running in Ubuntu? Could it be blocking non-local traffic?
 
Old 09-25-2017, 02:59 PM   #3
warlordkn
LQ Newbie
 
Registered: Sep 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
it can reach the internet in the sense that i was able to download xbuntu and the steam server files.

not sure what you mean by default route.

ive downloaded gufw and tried turning it on and off but seems to net the same results.

how can i tell if i am blocking outside traffic?

not sure if it made a difference but the server is actually running ubuntu-server

Last edited by warlordkn; 09-25-2017 at 03:54 PM.
 
Old 09-25-2017, 06:37 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,172

Rep: Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504
If you can successfully ping www.google.com (as one example) then your routing is correct and allowing packets to be delivered both in and out between your server and servers in the cloud. That is important, because if the route is wrong then local traffic should work, but outside of your local network will not.

Since your networking during the install may be different from your current settings, it pays to ask (and check).
 
Old 09-25-2017, 08:31 PM   #5
warlordkn
LQ Newbie
 
Registered: Sep 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
i did a ping (didn't realize it doesn't stop)
146 transmitted 146 recieved no packet loss
 
Old 09-26-2017, 02:11 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052
if it works locally, but not from the outside, your ISP probably prevents this.
it's rather common (they don't want you to run a server from a cheapo home connection).
 
Old 09-26-2017, 06:25 AM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,172

Rep: Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504
Quote:
Originally Posted by warlordkn View Post
i did a ping (didn't realize it doesn't stop)
146 transmitted 146 recieved no packet loss
Very good. Then the basic networking should be in place. Now, how are you addressing the connection from the outside?
You must use the outside address, not the inside address, and you may be unable to use a name for the connection unless there is a a DNS or DynDNS style entry for your external address.

Internal (LAN) addresses are private and non-routable so they are not directly usable from outside your LAN.
 
Old 09-26-2017, 10:42 PM   #8
warlordkn
LQ Newbie
 
Registered: Sep 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
if it works locally, but not from the outside, your ISP probably prevents this.
it's rather common (they don't want you to run a server from a cheapo home connection).
can confirm that it is not blocked by isp since trying this whole process with another machine (windows) works flawlessly

Quote:
Originally Posted by wpeckham View Post
Very good. Then the basic networking should be in place. Now, how are you addressing the connection from the outside?
You must use the outside address, not the inside address, and you may be unable to use a name for the connection unless there is a a DNS or DynDNS style entry for your external address.

Internal (LAN) addresses are private and non-routable so they are not directly usable from outside your LAN.
i thought port forwarding was the solution. simply because again when i used an old windows machine that's all i had to do and it worked. is this an issue specific to linux? im not saying that im unwilling to try this and my router does have a static routing option, i just don't know how to set it up.
 
Old 09-27-2017, 06:46 AM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,172

Rep: Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504Reputation: 2504
Are you using the same addressing and forwarding when the game is hosted on Windows, as when it is hosted on Linux?

I know of nothing that would make one work differently than the other for this purpose. I have used both as hosts, just not for network games. (Web servers, music hosts, just not games) I suspect there is something in the configuration.

On the linux server, check the output of [code]netstat[and confirm the address and port the game is using to listen for connections. I am looking for 0.0.0.0 or 192.168.1.105 for the listening address. This SHOULD be good, or it would not work from inside the LAN, but I want to make sure.

I would also like you to verify that the address 192.168.1.105 is the correct address for the interface you are using. I suspect it is correct, but since I cannot see for myself...

Can your network device log traffic? I would like very much to see what the log looks like when a connection attempt is made from outside the network for one of the failed attempts.

Have you disabled SELINUX protections? We have no direct evidence that it is involved, but I would try turning it off to find out.

Somewhere packets are being directed improperly, dropped, or ignored. The most reasonable place to suspect is the Linux server itself, simply because when you used a Windows game server it worked and the one thing you changed (and the ONLY thing you should have changed) would be the operating system.
 
Old 09-29-2017, 01:28 PM   #10
warlordkn
LQ Newbie
 
Registered: Sep 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
ok for the hell of it i attempted to boot up the server on my old windows machine that has had it running before, and it seems as tho this is also not showing up outside of the network. so there may actually be a problem somewhere else that i am not seeing.

and if i manage to figure it out it might also solve the linux problem along with it.

ive been testing my forwards with a tool called port listener and when using it i get open ports back when using yougetsignal.com but it only seems able to pick up on tcp i have no idea how to check on udp but im looking more into it
 
Old 10-11-2017, 04:19 PM   #11
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
so as I understand at this stage: your web browser works on ubuntu and Windows 10, but the game hosting application does not

could be your ISP blocking ports but ...

what ports? we cannot say whether the ports are special (blocked inbound or outbound by your provider) if you did not say which they are. some providers are more vigilant than others and extort you to "re-enable" the ports they disabled. (it's called extortion)

note I assume this is NOT an issue since your testing with Window 10 (get that working first). you said you disabled firewall on ubuntu (easier done on Windows 10 btw): however you maybe can't have "no firewall". you might have to use a few rules that ALLOW the (3 kinds) going IN, FORWARD, and OUT. (your firewall program should have a way to list current kernel rules, and yes, a firewall program leaves rules inside the kernel so it doesn't need to be running to be blocking)

Last edited by X-LFS-2010; 10-11-2017 at 04:20 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba server visible on network intermittent - shares not accessible - UPDATE neoelf Linux - Networking 1 06-17-2009 03:34 AM
Can't host game server behind network eagled2 Linux - Networking 6 07-11-2007 01:25 PM
ftp server set up using vsftp not visible in the network. calculemus Linux - Networking 21 11-03-2006 11:06 PM
Trying to host game server behind router scott847 Linux - Networking 2 04-09-2005 04:56 PM
Change Visible ip on Host cli_man Linux - Networking 0 05-24-2004 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration