?
Solved

Connect thru network address?? Where to start??

Posted on 2003-03-02
3
Medium Priority
?
156 Views
Last Modified: 2013-11-13
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
Comment
Question by:mayfieldjr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
J-Man earned 100 total points
ID: 8053846
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
 

Expert Comment

by:applayer
ID: 8054316
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
 

Author Comment

by:mayfieldjr
ID: 8076679
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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

762 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