LinuxQuestions.org
Visit Jeremy's Blog.
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 12-16-2013, 04:56 AM   #1
suvarna25
LQ Newbie
 
Registered: Dec 2013
Posts: 17

Rep: Reputation: Disabled
Unable to connect with linux system to other linux system


Hello

I have developed a web project in eclipse. Create a war file of that

project n send it on other linux system. The problem is that when i try to

access that project on my system it gives me error "Unable to connect.

Firefox can't establish a connection to the server at xxx.xxx.x.xx:8080"

I m accessing this via apache-tomcat. what is going wrong with me?

Last edited by suvarna25; 12-16-2013 at 05:01 AM.
 
Old 12-16-2013, 05:02 AM   #2
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
You are trying to connect on what method? Using your project that you create?

Or you mean that the web page is not accessible?

Your question is not clear, or you want to connect remotely to another server?

Or the apache-tomcat is not functioning?

Which one is it?

Last edited by JJJCR; 12-16-2013 at 05:04 AM. Reason: edit
 
Old 12-16-2013, 05:06 AM   #3
suvarna25
LQ Newbie
 
Registered: Dec 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
I have typed in my address bar "http://ip address:8080/myproject/myfile.html" When i try to ping that ip address it pinged. My other web pages are accessible.

Last edited by suvarna25; 12-16-2013 at 05:09 AM.
 
Old 12-16-2013, 05:09 AM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
on local network are you able to see the page?

but not on the internet?

if local network is fine and not on the internet, then you might need to check whether port 8080 is open to the outside world and is port forwarded to your machine hosting the page.

Last edited by JJJCR; 12-16-2013 at 05:10 AM. Reason: edit
 
Old 12-16-2013, 05:21 AM   #5
suvarna25
LQ Newbie
 
Registered: Dec 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
I am trying on local network only and I am getting an error "Unable to establish the connection to server" or sometimes "Server is taking too much time to respond". this is happening with Linux system only.

If I deploy the .War file on Win OS machine I am able to connect the machine and can see the desired web page.

Even I can access Win machine from Linux system. But not possible vice versa. What can be the cause of this?
 
Old 12-16-2013, 08:34 AM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
have you installed and configured apache as well as set iptables and SELinux to allow for the port 8080 connection?
 
Old 12-16-2013, 08:27 PM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
check out this link, configure Apache to use different port:

http://www.groovypost.com/howto/apac...ultiple-ports/
 
Old 12-17-2013, 01:10 AM   #8
suvarna25
LQ Newbie
 
Registered: Dec 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
I am using centOS 6.4. There is no httpd.conf file in conf folder.
 
Old 12-17-2013, 02:30 PM   #9
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by suvarna25 View Post
I am using centOS 6.4. There is no httpd.conf file in conf folder.
again, have you properly installed and configured Apache web server as well as configured both IPTables and SELinux to allow access to the server. from the sounds of it that answer is NO. please do so, then your problems will change or go away.
 
Old 12-17-2013, 07:47 PM   #10
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
Cool

Quote:
Originally Posted by suvarna25 View Post
I am using centOS 6.4. There is no httpd.conf file in conf folder.
Please install and configure Apache.

Use this keyword to search on Google.

"How to install Apache on CentOS"

"How to configure Apache on CentOS"

"CentOS Apache configuration Guide"

You need to help yourself aside from asking help from others.
 
Old 12-17-2013, 11:56 PM   #11
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 664

Rep: Reputation: 80
is it really 8080 for apache ?

Quote:
Originally Posted by suvarna25 View Post
I am using centOS 6.4. There is no httpd.conf file in conf folder.
from the first view seems apache is not correctly installed! please install and configure it:

when apache-tomcat pair is used then to access the site you should use:
http://sitename:apache_port and not the tomcat one.

prior to that have you configured tomcat to run with apache using modules like "mod_jk" or "mod_proxy" ?

checks after configuration:

Is the apache service running ?
Is the tomcat service running ?
check mod_jk.logs (if it is used) to see if apache is bale to communicate with tomcat ?
 
Old 12-18-2013, 12:44 AM   #12
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
Please type this on the terminal and post back the result:

Quote:
ps ax | grep httpd | grep -v grep

netstat -l | grep http

service httpd status

Last edited by JJJCR; 12-18-2013 at 12:44 AM. Reason: edit
 
Old 12-18-2013, 01:25 AM   #13
suvarna25
LQ Newbie
 
Registered: Dec 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
When i try this. .

$netstat -l grep http
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 localhost.localdomain:ipp *:* LISTEN
tcp 0 0 localhost.localdomain:smtp *:* LISTEN
tcp 0 0 *:46395 *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:webcache *:* LISTEN
tcp 0 0 *:ncube-lm *:* LISTEN
tcp 0 0 *:8085 *:* LISTEN
tcp 0 0 localhost6.localdomain6:ipp *:* LISTEN
tcp 0 0 *:45444 *:* LISTEN
tcp 0 0 localhost.localdomain:mxi *:* LISTEN
tcp 0 0 *:8009 *:* LISTEN
tcp 0 0 *:56874 *:* LISTEN
udp 0 0 *:sco-websrvrmgr *:*
udp 0 0 *:sunrpc *:*
udp 0 0 *:ipp *:*
udp 0 0 *:39201 *:*
udp 0 0 *:elcsd *:*
udp 0 0 *:sco-websrvrmgr *:*
udp 0 0 *:sunrpc *:*
udp 0 0 localhost6.localdomain:37759 *:*
udp 0 0 localhost6.localdomain:49289 *:*
udp 0 0 *:39063 *:*
udp 0 0 localhost6.localdomain:41803 *:*
udp 0 0 localhost6.localdomain:35300 *:*
udp 0 0 *:48484 *:*
udp 0 0 localhost6.localdomain:50535 *:*
udp 0 0 localhost6.localdomain:39146 *:*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 14310 /var/tmp/.oracle/sEXTPROC_FOR_XE
unix 2 [ ACC ] STREAM LISTENING 19848 /tmp/orbit-suvarna/linc-a86-0-29278db42608d
unix 2 [ ACC ] STREAM LISTENING 14312 /var/tmp/.oracle/s#2059.1
unix 2 [ ACC ] STREAM LISTENING 19850 /tmp/orbit-suvarna/linc-a87-0-3c065b7126130
unix 2 [ ACC ] STREAM LISTENING 20058 /tmp/orbit-suvarna/linc-a99-0-6250cfa8bd1c7
unix 2 [ ACC ] STREAM LISTENING 14320 /var/tmp/.oracle/s#2059.2
unix 2 [ ACC ] STREAM LISTENING 19870 /tmp/orbit-suvarna/linc-a5e-0-5be01b8342ac1
unix 2 [ ACC ] STREAM LISTENING 20112 /tmp/orbit-suvarna/linc-a9a-0-3692e57e9f769
unix 2 [ ACC ] STREAM LISTENING 58324 /tmp/orbit-suvarna/linc-d56-0-2787dfff5e76a
unix 2 [ ACC ] STREAM LISTENING 21472 /tmp/orbit-suvarna/linc-af8-0-55b6a70525eea
unix 2 [ ACC ] STREAM LISTENING 41299 /tmp/orbit-suvarna/linc-bc4-0-5eeb35fb63c7
unix 2 [ ACC ] STREAM LISTENING 18149 @/tmp/.ICE-unix/2590
unix 2 [ ACC ] STREAM LISTENING 18057 @/tmp/dbus-qVqLtr9LFn
unix 2 [ ACC ] STREAM LISTENING 9159 @/com/ubuntu/upstart
unix 2 [ ACC ] STREAM LISTENING 15440 private/rewrite
unix 2 [ ACC ] STREAM LISTENING 15444 private/bounce
unix 2 [ ACC ] STREAM LISTENING 13841 /var/run/pcscd.comm
unix 2 [ ACC ] STREAM LISTENING 16484 @/tmp/gdm-session-OQxwaKLR
unix 2 [ ACC ] STREAM LISTENING 15448 private/defer
unix 2 [ ACC ] STREAM LISTENING 16318 @/tmp/gdm-greeter-qjUWfuxe
unix 2 [ ACC ] STREAM LISTENING 16141 @/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 15452 private/trace
unix 2 [ ACC ] STREAM LISTENING 12456 /var/run/rpcbind.sock
unix 2 [ ACC ] STREAM LISTENING 13316 /var/run/cups/cups.sock
unix 2 [ ACC ] STREAM LISTENING 15456 private/verify
unix 2 [ ACC ] STREAM LISTENING 15460 public/flush
unix 2 [ ACC ] STREAM LISTENING 15464 private/proxymap
unix 2 [ ACC ] STREAM LISTENING 15468 private/proxywrite
unix 2 [ ACC ] STREAM LISTENING 15472 private/smtp
unix 2 [ ACC ] STREAM LISTENING 15476 private/relay
unix 2 [ ACC ] STREAM LISTENING 15480 public/showq
unix 2 [ ACC ] STREAM LISTENING 15484 private/error
unix 2 [ ACC ] STREAM LISTENING 13399 /var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 15488 private/retry
unix 2 [ ACC ] STREAM LISTENING 15492 private/discard
unix 2 [ ACC ] STREAM LISTENING 12648 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 18150 /tmp/.ICE-unix/2590
unix 2 [ ACC ] STREAM LISTENING 13442 @/var/run/hald/dbus-H7GRRjdtxQ
unix 2 [ ACC ] STREAM LISTENING 15496 private/local
unix 2 [ ACC ] STREAM LISTENING 15436 private/tlsmgr
unix 2 [ ACC ] STREAM LISTENING 18174 /tmp/orbit-suvarna/linc-a40-0-4b392923e1d93
unix 2 [ ACC ] STREAM LISTENING 15500 private/virtual
unix 2 [ ACC ] STREAM LISTENING 18336 /tmp/orbit-suvarna/linc-a1e-0-961d641e8349
unix 2 [ ACC ] STREAM LISTENING 18464 /tmp/orbit-suvarna/linc-a47-0-6082ce619001d
unix 2 [ ACC ] STREAM LISTENING 18475 /tmp/orbit-suvarna/linc-a15-0-7a4c5ff09067b
unix 2 [ ACC ] STREAM LISTENING 18479 /tmp/keyring-2dQCGf/socket.ssh
unix 2 [ ACC ] STREAM LISTENING 15504 private/lmtp
unix 2 [ ACC ] STREAM LISTENING 18481 /tmp/keyring-2dQCGf/socket.pkcs11
unix 2 [ ACC ] STREAM LISTENING 15508 private/anvil
unix 2 [ ACC ] STREAM LISTENING 17786 /tmp/keyring-2dQCGf/socket
unix 2 [ ACC ] STREAM LISTENING 15512 private/scache
unix 2 [ ACC ] STREAM LISTENING 16146 /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 18673 /tmp/orbit-suvarna/linc-a55-0-413fdafc13df8
unix 2 [ ACC ] STREAM LISTENING 18747 /tmp/orbit-suvarna/linc-a5a-0-57829b547d9f3
unix 2 [ ACC ] STREAM LISTENING 18752 /tmp/.esd-500/socket
unix 2 [ ACC ] STREAM LISTENING 18755 /home/suvarna/.pulse/4c54f50574deacaa6640ef5000000027-runtime/native
unix 2 [ ACC ] STREAM LISTENING 18805 /tmp/orbit-suvarna/linc-a5d-0-440d6c95a89c5
unix 2 [ ACC ] STREAM LISTENING 19115 /tmp/orbit-suvarna/linc-a67-0-78389cddabf70
unix 2 [ ACC ] STREAM LISTENING 19284 /tmp/orbit-suvarna/linc-a6e-0-4295edd1d337d
unix 2 [ ACC ] STREAM LISTENING 19324 /tmp/orbit-suvarna/linc-a6f-0-6fbb4a60d6de1
unix 2 [ ACC ] STREAM LISTENING 19467 /tmp/orbit-suvarna/linc-a65-0-4c35eb7541168
unix 2 [ ACC ] STREAM LISTENING 15429 public/cleanup
unix 2 [ ACC ] STREAM LISTENING 19746 /tmp/orbit-suvarna/linc-a7f-0-28ff679bcada3
unix 2 [ ACC ] STREAM LISTENING 13435 @/var/run/hald/dbus-xVZsA0rrfn
unix 2 [ ACC ] STREAM LISTENING 19780 /tmp/orbit-suvarna/linc-a72-0-14f50799dd326

$service httpd status
httpd: unrecognized service
 
Old 12-18-2013, 03:31 AM   #14
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
Quote:
$service httpd status
httpd: unrecognized service
it means that you haven't installed apache..

please check post #7;check the link on how to install and configure apache..
 
Old 12-18-2013, 04:54 AM   #15
suvarna25
LQ Newbie
 
Registered: Dec 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
I have installed apache n configure it. Now run command # service httpd status it gives me "httpd dead but subsys locked". What does it means?

When i run this command as a root user it gives "httpd (pid 3902) is running..."

Last edited by suvarna25; 12-18-2013 at 04:56 AM.
 
  


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
connect to remote linux system soumya_r Linux - Networking 2 03-26-2010 05:41 AM
Unable to connect to any system on the Network kvvsrinivas Linux - Networking 4 11-14-2008 08:39 AM
xhost issues: remote system unable to connect DaFrEQ SUSE / openSUSE 1 05-21-2008 09:45 PM
How to connect a Linux and a Windows system? bitpicker Linux - Networking 7 10-17-2004 11:23 AM


All times are GMT -5. The time now is 04:21 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