0

Dear All,
I want to develop a network application in java based on HTTP.. In which one server and other is client application..... The problem is that, How can I check whether a server ip address is valid or not ?

Please tell me... I am very thankful to you....
Regards
Tabish Saroha

3
Contributors
4
Replies
7
Views
5 Years
Discussion Span
Last Post by DavidKroukamp
0

I already connect with the server, but my question is that i want to check whether server is denied or exists..... means I wanna use a condition on ip address, whether IP exists or not ?

0

I don't think you can do that definitively. If the server chooses not to respond to you then you can't tell if it's there, or not there.
You could try to ping the server, but once again, if it decides not to respond then there's nothing you can do.

0

I already connect with the server, but my question is that i want to check whether server is denied or exists..... means I wanna use a condition on ip address, whether IP exists or not ?

Well if the client is in java surround the statement which initiates the connection with a try catch statement that should help to see whether a connection was successfully made or not

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.