473,388 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Ethernet programming in VB

hi all;
i am new at this forum; kindly guide me for this ,
i am want to write a code for ethernet in vb which connect two PC's and send a MSG on other Pc when some event occures . (one behave like clint and other server)
thanks
Aug 19 '06 #1
5 5667
sashi
1,754 Expert 1GB
Hi Adnan,

all you need to know is a little bit of knowledge on windows socket programming as well as some additional knowledge on TCP/UDP protocols respectively.. you can make use of Microsoft Winsock control shipped with vb distribution.. for further reading & understanding kindly refer to below attached links.. good luck & take care my fren.. :)

http://www.devx.com/vb2themax/Article/19879
http://www.vbip.com/winsock/
Aug 19 '06 #2
BSOB
77
my input here probably wont be helpfull, but i did this the low-teck way. I gave my "server" box write rights on my "client" and just had the server write a file to a designated path on the client computer with instructions in the file. the client would capture the writing of that file and then "read"/process the instructions.
im all about the "wrong" way to do things.
this posed a major security risk, but it worked!
oh yah, and if you are considering this, im just letting you know that the links sashi gave arnt only the right way to do it, but it will be a lot less work on your part, a lot safer, and a lot more efficient. i only did it my way because i was 13, and i didnt know any better. i only posted because it might inspire you.
good luck.
Aug 20 '06 #3
thanks sashi!

but i want a bit more tips how to do it in vb .By the way i have a idea of windows sockets and TCP/IP.

plz give me some programming hints so that i can implement this.

thanks again.



Hi Adnan,

all you need to know is a little bit of knowledge on windows socket programming as well as some additional knowledge on TCP/UDP protocols respectively.. you can make use of Microsoft Winsock control shipped with vb distribution.. for further reading & understanding kindly refer to below attached links.. good luck & take care my fren.. :)

http://www.devx.com/vb2themax/Article/19879
http://www.vbip.com/winsock/
Aug 20 '06 #4
sashi
1,754 Expert 1GB
Hi BSOB,

i have been working with both the classic (API) sockets as well winsock programming for few years.. i feel winsock is safer to work around even is the server is behind a firewall.. i.e. server can be forced to listen for incoming connection on a specific port.. the administrator can configure the firewall to listen for either TCP / UDP connection on a specific port..

i feel it's alot more safer then attempting to connect on any opened ports, which can be very harmful for both the client as well as the server..

this is just my opinion.. take care my fren..
Aug 20 '06 #5
sashi
1,754 Expert 1GB
Hi Adnan,

i dont understand abt what u meant by "but i want a bit more tips how to do it in vb".. didn't you check out the samples attached?? take a look and try it out.. take care my fren..
Aug 20 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Chaser | last post by:
Hi folks, Just wondering if anyone knows where I can find modules for NI-488.2 GPIB and for a generic ethercard? Thanks.
3
by: Ophir | last post by:
Hi all ! Are there any windows API to get information about ethernet cards installed on the computer? Tried to search msdn but came out short. I need to get all present networking cards...
3
by: Bob Greschke | last post by:
There is a lot to stuff that seems to skirt around this issue (most of which has to do with finding your IP address), but I can't find anything that explains how to write a client that (in my case)...
5
by: MLH | last post by:
Well one thing I've wanted to do is be able to PHYSICALLY connect and dis- connect a PC's xBASE-T connection via program control. The idea is... Instead of plugging your standard R-J45...
1
by: gnanapoongothai | last post by:
Hi I am into the project of processing data from ethernet cards at a fast rate and send the process data out. Byt i am struck with abt details of hoe to access the data from ethernet. i know NIC...
2
by: illusion | last post by:
Need help im not either getting da idea how to detect ethernet card and to read data file from it when there is a client server scenerio and server & client both knows eachother's IP address(but in...
11
by: gustavo.samour | last post by:
Hi, I am writing a very basic raw ethernet sniffer based on what I found in Andreas Schaufler's raw ethernet article: http://aschauf.landshut.org/fh/linux/udp_vs_raw/ch01s03.html I'm trying...
2
by: mostafijur | last post by:
Hello My PC has 2 ethernet card.I am using 1 port for internet.The 2nd port is connected with another PC and same network address.I want to send data by the 2nd port to that PC on time...
1
by: kavok | last post by:
I am writing a software that needs to sniff packets in the network (raw ethernet) and also, with another thread send regular UDP packets with the common socket API's. However, when the RAW...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.