LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to connect with linux system to other linux system (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-connect-with-linux-system-to-other-linux-system-4175488104/)

suvarna25 12-16-2013 03:56 AM

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?

JJJCR 12-16-2013 04:02 AM

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?

suvarna25 12-16-2013 04:06 AM

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.

JJJCR 12-16-2013 04:09 AM

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.

suvarna25 12-16-2013 04:21 AM

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?

lleb 12-16-2013 07:34 AM

have you installed and configured apache as well as set iptables and SELinux to allow for the port 8080 connection?

JJJCR 12-16-2013 07:27 PM

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

http://www.groovypost.com/howto/apac...ultiple-ports/

suvarna25 12-17-2013 12:10 AM

I am using centOS 6.4. There is no httpd.conf file in conf folder.

lleb 12-17-2013 01:30 PM

Quote:

Originally Posted by suvarna25 (Post 5081996)
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.

JJJCR 12-17-2013 06:47 PM

Quote:

Originally Posted by suvarna25 (Post 5081996)
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.

SAbhi 12-17-2013 10:56 PM

is it really 8080 for apache ?

Quote:

Originally Posted by suvarna25 (Post 5081996)
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 ?

JJJCR 12-17-2013 11:44 PM

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

suvarna25 12-18-2013 12:25 AM

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

JJJCR 12-18-2013 02:31 AM

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..

suvarna25 12-18-2013 03:54 AM

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..."


All times are GMT -5. The time now is 12:24 AM.