• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 157
  • Last Modified:

Connect thru network address?? Where to start??

I want to use VB to connect to a network address at work.  I now use WRQ Reflections to login and send & receive.  I connect to a unix based device.  The reason I want to use VB is that if I write my application using Reflections VB I can't distribute it to others I work with. (They would need Reflections on their computer)
I tried the inet1 control and openURL but is doesn't login.
I used "ftp://username:password@##.##.###.##"

I guess I just need to be pointed in the correct direction.  Pointed to good, simple examples.

After connecting to the device I will be sending unix commands (ls, get, put, cd /opt/bsm, etc) and other commands specific to this device.  I'll need to act on responses to these commands.  But I am getting ahead of my main problem - just getting connected reliably.

If it will help.  When using Reflections I use "Best Network", and enter an address.  I Connect and receive a prompt to enter my UN & Password. After that it's like working in DOS. CD /, ls -lrt, action initialize.
I'll be using an interface that hides the actual communicating behind the scenes.


Thanks for the help.
0
mayfieldjr
Asked:
mayfieldjr
1 Solution
 
J-ManCommented:
Try using the winsock control instead of inet.
The InternetTransferControl is specifically used for http and ftp protocols where as the winsock control allows common tcp/ip and udp services.

Various examples can be found at the sites below:
http://www.acky.net/vb/vbtcp/
http://www.vbip.com/winsock-api/
http://tcfreenet.org/people/parity/winsock.htm
http://www.programmersheaven.com/zone1/cat84/
0
 
applayerCommented:
http://www.vbip.com

The above URL is a great resource for programming internet applications using visual basic.  It has example applications to accomplish FTP tasks using both the INET control and Winsock, and basically this website has examples that should take you step by step through the process of programming a visual basic application to do any variety of internet tasks.

If you want to use the inet or winsock controls with visual basic, you will need to know the ip address of the location you want to connect to...or what it's dns name is...these controls have a bit of a learning curve to them, but again vbip.com is a great resource for downloadable tutorials, and you may have more luck accomplishing your task if you download a project from that site and then post some questions about getting that project to work for your situation.  Don't get frustrated, because you'll be able to do the programming you need to with vb, but i suggest check out vbip.com and see what you can get out of their tutorials.

a specific place to start:
http://www.vbip.com/winsock/winsock_control.asp
0
 
mayfieldjrAuthor Commented:
I found out what I want to do isn't as simple as I thought.  Everything I have found will let me connect but not communicate back & forth.

I'll use Reflections VB.  Works very well.

Thanks for the starting places.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now