<div dir="ltr">Also, it could be a firewall issue.  Some OS's block all ports by default for inbound connections.  I don't know the correct invocation on centos to see what the firewall settings are, but if centos uses ufw.  See if you can do a:<div><br></div><div>sudo ufw status</div><div><br></div><div>if you see it enabled, do a sudo ufw disable and then see if you can connect in...  Obviously, the correct solution then is to figure out what ports the application is using and then enable those in the firewall, and re-enable the firewall if this is the case...</div><div><br></div><div>Good luck</div><div><br></div><div>Zak</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 6, 2014 at 10:36 AM, Stephen Belcher <span dir="ltr"><<a href="mailto:sbelcher@gmail.com" target="_blank">sbelcher@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">FWIW, on CentOS, it seems that the `<font face="courier new, monospace">netstat -en</font>` command doesn't list listening sockets, for that you'll need to add the `<font face="courier new, monospace">-l</font>` flag (which then seems to list <b>only</b> listening sockets, not sure how to get both). Additionally, you can `<font face="courier new, monospace">grep</font>` that output for the port you're trying to connect on to see if it's open, instead of parsing the whole output, <i>e.g.</i>, `<font face="courier new, monospace">netstat -len | grep :12345</font>` (not 12345, natch, just whatever the port is). I was hoping there was a way to instruct `<font face="courier new, monospace">netstat</font>` to only care about particular ports, but I can't seem to find that.<div><div><br></div><div>--Stephen</div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Oct 6, 2014 at 10:13 AM, Bernie Simon <span dir="ltr"><<a href="mailto:bsimon@stsci.edu" target="_blank">bsimon@stsci.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:18px;font-family:Calibri,sans-serif">
<div>The standard command to check for open ports is</div>
<div><br>
</div>
<div>netstat -en</div>
<div><br>
</div>
<div>More information can be found on the web. Don’t know how this stuff in configured under Windows.</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>Dawn Wallis <<a href="mailto:wallisds@gmail.com" target="_blank">wallisds@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>Baltimore Perl Mongers <<a href="mailto:baltimore-pm@pm.org" target="_blank">baltimore-pm@pm.org</a>><br>
<span style="font-weight:bold">Date: </span>Monday, October 6, 2014 at 9:48 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:baltimore-pm@pm.org" target="_blank">baltimore-pm@pm.org</a>" <<a href="mailto:baltimore-pm@pm.org" target="_blank">baltimore-pm@pm.org</a>><br>
<span style="font-weight:bold">Subject: </span>[baltimorepm] help with Net::HL7::Connection<br>
</div><div><div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>At work we had a Windows XP computer setup to collect lab results from Quest. That data was parsed and transferred to our mysql database (on a CentOS server) using Net::HL7::Connection. Recently we had to upgrade to Windows 7 for the capturing computer.
 So I'm using Windows 7 to collect blood work data from Quest. </div>
<div><br>
</div>
<div>The scripts that were on the XP machine seem to work pretty well on the 7 box too, so I am able to get the data parsed and ready for transport to my mysql database server, but it doesn't send. </div>
<div><br>
</div>
<div>I am getting a "Could not connect. No connection could be made because the target machine actively refused it" error. </div>
<div><br>
</div>
<div>Net::HL7::Connection takes a host and port but no password or anything. I figure I'm supposed to open a port on the db server to allow this incoming connection, but I'm having trouble figuring that part out. I don't know where to look on the centos server
 to see if a port is open for the other xp computer, what file to edit... etc. </div>
<div><br>
Any suggestions?</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
Thanks,<br>
Dawn</div>
</div>
</div>
</div>
</div></div></span>
</div>

<br></div></div>_______________________________________________<br>
Baltimore-pm mailing list<br>
<a href="mailto:Baltimore-pm@pm.org" target="_blank">Baltimore-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/baltimore-pm" target="_blank">http://mail.pm.org/mailman/listinfo/baltimore-pm</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
Baltimore-pm mailing list<br>
<a href="mailto:Baltimore-pm@pm.org">Baltimore-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/baltimore-pm" target="_blank">http://mail.pm.org/mailman/listinfo/baltimore-pm</a><br></blockquote></div><br></div>