LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2013, 06:09 PM   #1
ShaneRoach
Member
 
Registered: Apr 2013
Posts: 68

Rep: Reputation: 3
Cannot Connect to Localhost in Minetest


I was trying to play Minetest, which is an open source game similar to Minecraft, and found I could not play it because it would never connect to the server which runs on your computer hosting the world. After some extensive troubleshooting on the Minetest side itself, I had some vague hopes of finding help here, as it seems for some reason my laptop is rejecting requests to connect to localhost.

Is there a logfile I can look at in Debian to confirm or deny?

I looked at my etc/hosts files (accept, deny, hosts itself) and did not see anything fishy, but any insights anyone can offer on that would be appreciated. Certainly localhost was included in etc/hosts.

I can't browse localhost either, but I'm not running Apache or anything so that is probably just the way things are supposed to be. --->EDIT<---

I do seem to HAVE Apache. There is no www folder in var. MY general purpose user cannot create a www folder there. This brings me to another issue I have been having. As I try to troubleshoot, it seems I may as well not even have a GUI. Everything ends up being forced to go through the Root terminal. Occassionally some basic things will offer me a login option to change them, but a lot of stuff I have to be root to do, and have to do through the terminal to do it. Am I missing something here?

I can do term stuff but GUI's are more natural for me.

If the GUI is an afterthought for Linux, is it at all possible to turn Gnome off and on from the command line? Just as an exercise in running the machine from the command line?

Last edited by ShaneRoach; 04-22-2013 at 07:26 PM.
 
Old 04-22-2013, 09:27 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

please tell us exactly what you did and what error messages, you see. You could for example give the url of the instructions you were following and, tell where you started having problems.

Quote:
Originally Posted by ShaneRoach View Post
I was trying to play Minetest, which is an open source game similar to Minecraft, and found I could not play it because it would never connect to the server which runs on your computer hosting the world. After some extensive troubleshooting on the Minetest side itself, I had some vague hopes of finding help here, as it seems for some reason my laptop is rejecting requests to connect to localhost.
Could be firewall, tcpwrappers, or it could be that you never really started/configured the server correctly. Please tell us exactly what you did and what error messages, you see. You could for example give the url of the instructions you were following and tell where you started having problems.
Quote:
Is there a logfile I can look at in Debian to confirm or deny?
There are many. They reside in /var/log/. syslog, auth.log and messages are possibly of interest to you.

Quote:
I looked at my etc/hosts files (accept, deny, hosts itself) and did not see anything fishy, but any insights anyone can offer on that would be appreciated. Certainly localhost was included in etc/hosts.
hosts.deny and hosts.allow are for tcpwrappers, hosts is primarily for mapping ips to hostnames

Quote:
I can't browse localhost either, but I'm not running Apache or anything so that is probably just the way things are supposed to be. --->EDIT<---
Browse?

Quote:
I do seem to HAVE Apache. There is no www folder in var. MY general purpose user cannot create a www folder there.
Ahh, I don't know what setting up a web server would have to do with setting up the game server. I think you should probably just concentrate on one thing at a time.

Quote:
This brings me to another issue I have been having. As I try to troubleshoot, it seems I may as well not even have a GUI. Everything ends up being forced to go through the Root terminal. Occassionally some basic things will offer me a login option to change them, but a lot of stuff I have to be root to do, and have to do through the terminal to do it. Am I missing something here?
Running X makes it easy to have multiple virtual terminals, read documentation (both online and offline), and all sorts of other things. For example you may prefer to do some things with a file manager instead of a shell, or perhaps you prefer to use a mouse instead of a keyboard and so on.

Quote:
If the GUI is an afterthought for Linux, is it at all possible to turn Gnome off and on from the command line? Just as an exercise in running the machine from the command line?
It's not an afterthought for Linux, it is a completely seperate entity. Linux is just a kernel, a full operating system has many other components.

Evo2.
 
Old 04-23-2013, 09:51 AM   #3
ShaneRoach
Member
 
Registered: Apr 2013
Posts: 68

Original Poster
Rep: Reputation: 3
Sadly there's not a lot to tell. I installed Minetest, tried to fire it up, and it gets to a point where it says "connecting to server" and hangs. The logfile the game itself generates gives the same message repeatedly and eventually times out, like so.

01:55:33: VERBOSE[Connection]: con(10/0): RE-SENDING timed-out RELIABLE to 127.0.0.1:30011(t/o=3): from_peer_id=0, channel=0, seqnum=65501
01:55:33: VERBOSE[Connection]: con(10/0): RE-SENDING timed-out RELIABLE to 127.0.0.1:30011(t/o=3): from_peer_id=0, channel=0, seqnum=65500
01:55:34: VERBOSE[Connection]: con(10/0): RunTimeouts(): Peer 1 has timed out. (source=peer->timeout_counter)
01:55:34: VERBOSE[Connection]: con(10/0): RunTimeouts(): Removing peer 1
01:55:34: INFO[main]: Client::deletingPeer(): Server Peer is getting deleted (timeout=1)
01:55:46: INFO[main]: Client packetcounter (20s):
01:56:08: INFO[main]: Client packetcounter (20s):
01:56:29: INFO[main]: Client packetcounter (20s):

No one else on the entire Minetest forums seems to have had this specific issue. The handful of similar issues seem to be related to permissions. I have checked permissions on the Minetest installations I have made, and all of them are good, but all of them have this same issue.

Sorry for the side track into GUI's. I just find that if it is more trouble to use the GUI than to just chuck the GUI the instant you have administrative tasks to do, the GUI has a long way to go. I think it is there just to make it easier for users to swap from Windows and have their documents and so forth available in a relatively familiar format. That's why I call it an afterthought.

If anyone is familiar enough with Gnome to teach me to be a power user of it so I can administrate my system through Gnome without constantly resorting to the command line, I would appreciate a primer.
 
Old 04-23-2013, 05:21 PM   #4
ShaneRoach
Member
 
Registered: Apr 2013
Posts: 68

Original Poster
Rep: Reputation: 3
This was due to settings in networkmanager.conf and interfaces. Specifically, this was due to me trying to get my wireless network to show me what signals were available, if I was logged in, etc.

http://wiki.debian.org/WiFi/HowToUse

I did not follow the instructions in the above link, but instead just made backups of the files and created blanks. This worked fine as along as all I wanted to do was make my networks show up. The real fix was merely to change a setting. Read the link for more details.
 
  


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
cannot connect to self ... not even localhost Skaperen Linux - Networking 8 12-11-2011 04:32 PM
I can't connect to anything other than localhost Virtual Circuit Debian 4 02-18-2010 04:28 AM
Cannot connect to anything on localhost JohnKFT Slackware 17 05-11-2005 03:21 AM
can't connect to localhost acidblue Fedora 0 12-05-2004 08:20 PM
Can't connect to localhost Brendon Linux - Networking 11 07-30-2002 11:13 AM


All times are GMT -5. The time now is 02:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration