This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Http port Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Http port" Watch "Http port" New topic
Author

Http port

kannan vinayagam Duraiswamy
Ranch Hand

Joined: Jan 12, 2009
Posts: 52
Hi All,
we have a client server application, which can able to communication with agents reside on other solaris machine in the same network.
agents and our application will communicate via https.
we can able configure the https port. but the problem is when we reinstall the https (ie reconfigure again) with new port the old still is listening..
how to disable the old port that used for http communication...




Kannan.DV
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8834
    
    7

What server are you using?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
kannan vinayagam Duraiswamy
Ranch Hand

Joined: Jan 12, 2009
Posts: 52
apache...and tomcat ..
meehul Chopra
Greenhorn

Joined: Feb 23, 2009
Posts: 10
kannan vinayagam Duraiswamy wrote:Hi All,
we have a client server application, which can able to communication with agents reside on other solaris machine in the same network.
agents and our application will communicate via https.
we can able configure the https port. but the problem is when we reinstall the https (ie reconfigure again) with new port the old still is listening..
how to disable the old port that used for http communication...



Not sure.....but shutting down some processes from the Task Manager might help...
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
kannan vinayagam Duraiswamy wrote:apache...and tomcat ..

Remove the listener from apache configuration file for old port. It should be in httpd.conf


“Everything should be as simple as it is, but not simpler.” Albert Einstein
kannan vinayagam Duraiswamy
Ranch Hand

Joined: Jan 12, 2009
Posts: 52
ok....but the new problem is raised..
the problem is that the apache web server is able to receive the request for some time ....then again the client application is not able to send the request to the server.... exception like ..... 'socket exception...webserver port down'...

but after some time the connection gets established between the client application and to web server....but again gets disconnected and get connected .....

can any one tell any suggestion or else suggest any tool to detect the http communication is working or not....

is wireshark is useful in this scenario...if then please tell me how to use this tool to find the https communication is ok via the configured port...


Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
Check the apache server log for any error, or any irregular startup/shutdown patterns.

kannan vinayagam Duraiswamy wrote:
can any one tell any suggestion or else suggest any tool to detect the http communication is working or not....

Any browser is your friend. Just type in the address bar http://the_ip_address_here:port_number. You should have some response.
If you access via https then use https instead.

You can also use telnet to telnet to the port to see if it is open.

Wireshark is a more like a traffic analyzer, properly won't work for your case.


kannan vinayagam Duraiswamy
Ranch Hand

Joined: Jan 12, 2009
Posts: 52
i used the telnet...
the problem is its connects sometime....connection refused on some other time period for the same agent ip address with same port used before...

any suggestion....
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
kannan vinayagam Duraiswamy wrote:i used the telnet...
the problem is its connects sometime....connection refused on some other time period for the same agent ip address with same port used before...

any suggestion....


Check the server log files.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Http port
 
Similar Threads
can we set same port for http as well as https connection in glassfish server
Part-II Regarding SSL
Part 2 - Where are the travel agents
Weblogic starts successfully but I'm getting 'Service Unavailable'
how to remove 8080 from URL before deployment