× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Quick and dirty java method - Put this in a file named PortScanner.java
on the IFS somewhere.

import java.net.*;

public class PortScanner {
public static void main(String []args) {
for (int port = 1; port <= 65535; port++) {
try {
Socket socket = new Socket();
socket.connect(new InetSocketAddress(args[0], port), 1000);
socket.close();
System.out.println("Port " + port + " is open");
} catch (Exception ex) {
}
}
}
}

Then
strqsh
cd /your/folder/on/the/ifs
javac PortScanner.java
java -cp . PortScanner xxx.xxx.xxx.xxx

Next time you can skip the javac piece and just get into the directory
and run it.




Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf
Of David Gibbs
Sent: Tuesday, August 21, 2018 11:01 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Verify network connection from i

Folks:

This may sound like a dumb question, but what tool or technique do you
use
to verify a network connection to another system (internal or
external)?

Yes, PING & TRACEROUTE are the obvious answers ... but, in my case,
ping &
traceroute are (for whatever reason) blocked (both from the i and my
workstation).

I've tried using wget in qshell (and qp2term), but I get a connection
refused
error.

Using wget I am able to retrieve the default index page from an IIS
instance
I'm running on my workstation (which is in the same physical network
as the
i).

Any ideas?

Thanks!

david

--
IBM i on Power Systems: For when you can't afford to be out of
business!

I'm riding 615 miles (Yes, you read that right) in the American
Diabetes
Association's Tour de Cure to raise money for diabetes research,
education,
advocacy, and awareness. You can make a tax deductible donation to my
ride by visiting https://mideml.diabetessucks.net.

You can see where my donations come from by visiting my interactive
donation map ... https://mideml.diabetessucks.net/map (it's a geeky
thing).

I may have diabetes, but diabetes doesn't have me!
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.