How do I check if my linux server connects to another server

Posted on 2014-07-16
Medium Priority
Last Modified: 2014-07-16
I am trying to configure my worklight server for push notifications. As such I need to ensure that my worklight server, which is a linux server, can access the following ip addresses:


Can anyone give me the commands on linux to do that? That is to check that the above four are accessible
Question by:onaled777
  • 2
LVL 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE earned 1000 total points
ID: 40200673
To test connectivity, you can try telnet:

telnet gateway.sandbox.push.apple.com 2195

If it is working, you should get a reply like this:

Connected to gateway.sandbox.push-apple.com.akadns.net.
Escape character is '^]'.
LVL 14

Accepted Solution

ThomasMcA2 earned 1000 total points
ID: 40200679
Use telnet. Use the following format, where #### is the port to connect to:

telnet some.domain.com ####

$ telnet gateway.sandbox.push.apple.com 2195
Connected to gateway.sandbox.push.apple.com.
Escape character is '^]'.

If you get the Connected... message, then you successfully connected to that server and port.

Type quit to exit telnet, then try the next domain in your list.

EDIT: Gerwin beat me by 2 1/2 minutes!

Author Closing Comment

ID: 40200690
Thank you both for your lighning responses! I appreciate.
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 40200701
You're welcome ;)

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month15 days, 18 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question