RE: [U2] Sockets Universe Question
quote who=Anthony Dzikiewicz I will give that a shot. We are the client in this set up. What should I expect if I telnet to the banks ip with the specified port ? I am trying this and the telnet just sits there. I will talk to their guys to help trouble shoot this as well. When you telnet to an IP with a port number, you should get something like: $ telnet 192.168.1.5 13 Connected to 192.168.1.5. Escape character is '^]'. Tue Oct 17 08:06:21 2006 Connection closed by foreign host. Okay, that was a telnet to a time server on my network, so it returned the time and date, then closed the connection. On a service that's waiting for something specific to initiate a handshake, you would get the Connected to... line, then just sit there. HTH, Karl Thanks anthony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Jordan Sent: Monday, October 16, 2006 7:50 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Sockets Universe Question Hi Anthony Have you checked the firewall. A quick and simple test to see if the socket is talking is to telnet to it using DOS or Unix Telnet utilities. Regards David Jordan Managing Consultant [EMAIL PROTECTED] www.dacono.com.au --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- karl _/ _/ _/ _/_/_/ __o _/ _/ _/ _/_/ _-\._ _/_/_/ _/_/_/ (_)/ (_) _/ _/ _/ _/ .. _/ _/ arl _/_/_/ _/ earson[EMAIL PROTECTED] -- IT Director, ATS Industrial Supply, Inc. http://www.atsindustrial.com Toll-free: 800-789-9300 x29 Direct2Desk: 801-978-4429 Facsimile: 801-972-3888 -- --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Sockets Universe Question
Anthony, If the telnet just sits there you are most likely being blocked by a firewall on the host as Adrian said. Ask them to open up a port (for example port 2004) for you. When you telnet you should get a logon message. george -Original Message- From: [EMAIL PROTECTED] [mailto:owner-u2- [EMAIL PROTECTED] On Behalf Of Anthony Dzikiewicz Sent: Monday, October 16, 2006 9:16 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Sockets Universe Question I will give that a shot. We are the client in this set up. What should I expect if I telnet to the banks ip with the specified port ? I am trying this and the telnet just sits there. I will talk to their guys to help trouble shoot this as well. Thanks anthony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Jordan Sent: Monday, October 16, 2006 7:50 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Sockets Universe Question Hi Anthony Have you checked the firewall. A quick and simple test to see if the socket is talking is to telnet to it using DOS or Unix Telnet utilities. Regards David Jordan Managing Consultant [EMAIL PROTECTED] www.dacono.com.au --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Sockets Universe Question
Adrian, Thanks for the suggestions. Ive never run nmap before, this is good to know about. I have discovered that I plugged the routers into the 'inside' of the firewall. They should have been on the 'dmz' side. So, I have corrected that and we still have issues. For the time being, it appears to be a network config issue rather than a Universe issue. Hopefully, I will get to the 'simple' part that you describe soon. Thanks Anthony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Merrall Sent: Monday, October 16, 2006 11:00 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Sockets Universe Question Anthony, Yes I can ping it from the server running Universe from the linux prompt. I did not set up a route. I believe the default route should work. I will look into that one. Thanks for the suggestion. Anthony If you can ping the server then your routing is should be OK, especially as you are doing from the lnx box running Universe. A common problem is firewalls (esp. corporate rather than home linksys type ones) tend to limit outbound connections and only allow outbound connections to port 80 etc. One way to test this would be to do as David suggested and try to telnet to that port (telnet ipaddy port (e.g. telnet 123.456.789.100 8080) As you are on linux you also should have the excellent nmap tool. Try something like nmap ipaddy - you have to run as root to have access to some of the options but this will port scan the remote box and let you know the ports they are listening on. Note you may want to let the bank know as people can get a bit excited about port scanning as it is often the first step in a remote instrusion attempt. Good luck, once you can get through my experiance is the unibasic socket api works very well for the simple stuff. HTH Adrian --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Sockets Universe Question
Anthony, If you are the client (ie contacting the bank) why are you using initserversocket? Initserversocket creates a process to listen for incoming connections binding to one of your local IP addresses (eg 192.168.1.1 from your example). To connect to the bank you need to use opensocket eg: ERR = OPENSOCKET(123.123.1.1, 4215, 1, 2000, SKTHDL) HTH, Craig --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Sockets Universe Question
You're right Craig. The reason is simple - I dont know what Im doing yet. When I do, Bob will be my uncle as they tell me. Ive never done this before. I am actually trying to help the programmer here (blind leading the blind). By the end of the week, we will right where we need to be in terms of understanding this. Thanks for the Help Craig. I appreciate it. Anthony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig Bennett Sent: Tuesday, October 17, 2006 7:48 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Sockets Universe Question Anthony, If you are the client (ie contacting the bank) why are you using initserversocket? Initserversocket creates a process to listen for incoming connections binding to one of your local IP addresses (eg 192.168.1.1 from your example). To connect to the bank you need to use opensocket eg: ERR = OPENSOCKET(123.123.1.1, 4215, 1, 2000, SKTHDL) HTH, Craig --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/480 - Release Date: 10/17/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/480 - Release Date: 10/17/2006 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Sockets Universe Question
Mongo only pawn in game of network addressing, but isn't' 192.168.1.1 only valid inside your router firewall? Like, that's why routers work as firewalls, 'cus that address only works inside the router and won't go out across the internet? I type in that address in I.E. and get my firewall config screen! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Anthony Dzikiewicz Sent: Monday, October 16, 2006 11:05 To: u2-users@listserver.u2ug.org Subject: [U2] Sockets Universe Question Hello All, I need a kick in the right direction. We are for the first time doing some sockets programming. We are writing an app that will talk to a bank thru a tcp/ip connection. The line is in and tested. We are now trying to test the socket connection and we are getting errors. The error we are getting in the initserversocket is 36. This means that The specified address is not a valid address for this machine. So, our machine is lets say '192.168.1.1' and the bank is '123.123.1.1' port is 4215. Im know the server that I am trying to contact is not on our network. Our router should be handling that ? I have successfully ping'd the ip address of the bank. I don't understand what we are not doing on the Universe side. Is there a config file that we need to set up ? Any help is appreciated. Thanks Anthony --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Sockets Universe Question
The solution might be very simple; if you don't specify an ip address in the initServerSocket, it defaults to the address of this server. When you do the acceptConnection, the requestor is sending their IP address. If this doesn't work, then perhaops the problemis an external one - firewalls, NAT's, that sort of thing. From: Anthony Dzikiewicz [EMAIL PROTECTED] Reply-To: u2-users@listserver.u2ug.org To: u2-users@listserver.u2ug.org Subject: [U2] Sockets Universe Question Date: Mon, 16 Oct 2006 14:05:13 -0400 Hello All, I need a kick in the right direction. We are for the first time doing some sockets programming. We are writing an app that will talk to a bank thru a tcp/ip connection. The line is in and tested. We are now trying to test the socket connection and we are getting errors. The error we are getting in the initserversocket is 36. This means that The specified address is not a valid address for this machine. So, our machine is lets say '192.168.1.1' and the bank is '123.123.1.1' port is 4215. Im know the server that I am trying to contact is not on our network. Our router should be handling that ? I have successfully ping'd the ip address of the bank. I don't understand what we are not doing on the Universe side. Is there a config file that we need to set up ? Any help is appreciated. Thanks Anthony --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Sockets Universe Question
We have a point to point line intalled with a router that is configured to take care of that. The numbers I used in my example are not real. The ip addresses are as different as in my example, but they are not real. Do you think this matters ? Anthony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allen E. Elwood Sent: Monday, October 16, 2006 6:14 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Sockets Universe Question Mongo only pawn in game of network addressing, but isn't' 192.168.1.1 only valid inside your router firewall? Like, that's why routers work as firewalls, 'cus that address only works inside the router and won't go out across the internet? I type in that address in I.E. and get my firewall config screen! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Anthony Dzikiewicz Sent: Monday, October 16, 2006 11:05 To: u2-users@listserver.u2ug.org Subject: [U2] Sockets Universe Question Hello All, I need a kick in the right direction. We are for the first time doing some sockets programming. We are writing an app that will talk to a bank thru a tcp/ip connection. The line is in and tested. We are now trying to test the socket connection and we are getting errors. The error we are getting in the initserversocket is 36. This means that The specified address is not a valid address for this machine. So, our machine is lets say '192.168.1.1' and the bank is '123.123.1.1' port is 4215. Im know the server that I am trying to contact is not on our network. Our router should be handling that ? I have successfully ping'd the ip address of the bank. I don't understand what we are not doing on the Universe side. Is there a config file that we need to set up ? Any help is appreciated. Thanks Anthony --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Sockets Universe Question
Hi Anthony Have you checked the firewall. A quick and simple test to see if the socket is talking is to telnet to it using DOS or Unix Telnet utilities. Regards David Jordan Managing Consultant [EMAIL PROTECTED] www.dacono.com.au --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Sockets Universe Question
When you say that you can ping the remote machine, is that from the server running Universe? If not, you may just need to set up a static route on the server. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Anthony Dzikiewicz Sent: Monday, October 16, 2006 12:05 PM To: u2-users@listserver.u2ug.org Subject: [U2] Sockets Universe Question Hello All, I need a kick in the right direction. We are for the first time doing some sockets programming. We are writing an app that will talk to a bank thru a tcp/ip connection. The line is in and tested. We are now trying to test the socket connection and we are getting errors. The error we are getting in the initserversocket is 36. This means that The specified address is not a valid address for this machine. So, our machine is lets say '192.168.1.1' and the bank is '123.123.1.1' port is 4215. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Sockets Universe Question
Yes I can ping it from the server running Universe from the linux prompt. I did not set up a route. I believe the default route should work. I will look into that one. Thanks for the suggestion. Anthony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Schasny Sent: Monday, October 16, 2006 8:26 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Sockets Universe Question When you say that you can ping the remote machine, is that from the server running Universe? If not, you may just need to set up a static route on the server. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Anthony Dzikiewicz Sent: Monday, October 16, 2006 12:05 PM To: u2-users@listserver.u2ug.org Subject: [U2] Sockets Universe Question Hello All, I need a kick in the right direction. We are for the first time doing some sockets programming. We are writing an app that will talk to a bank thru a tcp/ip connection. The line is in and tested. We are now trying to test the socket connection and we are getting errors. The error we are getting in the initserversocket is 36. This means that The specified address is not a valid address for this machine. So, our machine is lets say '192.168.1.1' and the bank is '123.123.1.1' port is 4215. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Sockets Universe Question
I will give that a shot. We are the client in this set up. What should I expect if I telnet to the banks ip with the specified port ? I am trying this and the telnet just sits there. I will talk to their guys to help trouble shoot this as well. Thanks anthony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Jordan Sent: Monday, October 16, 2006 7:50 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Sockets Universe Question Hi Anthony Have you checked the firewall. A quick and simple test to see if the socket is talking is to telnet to it using DOS or Unix Telnet utilities. Regards David Jordan Managing Consultant [EMAIL PROTECTED] www.dacono.com.au --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Sockets Universe Question
Anthony, Yes I can ping it from the server running Universe from the linux prompt. I did not set up a route. I believe the default route should work. I will look into that one. Thanks for the suggestion. Anthony If you can ping the server then your routing is should be OK, especially as you are doing from the lnx box running Universe. A common problem is firewalls (esp. corporate rather than home linksys type ones) tend to limit outbound connections and only allow outbound connections to port 80 etc. One way to test this would be to do as David suggested and try to telnet to that port (telnet ipaddy port (e.g. telnet 123.456.789.100 8080) As you are on linux you also should have the excellent nmap tool. Try something like nmap ipaddy - you have to run as root to have access to some of the options but this will port scan the remote box and let you know the ports they are listening on. Note you may want to let the bank know as people can get a bit excited about port scanning as it is often the first step in a remote instrusion attempt. Good luck, once you can get through my experiance is the unibasic socket api works very well for the simple stuff. HTH Adrian --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/