Tell If I Am Connected
How can I tell if I am connected through dial-up in a vb program and if not connected disconnect. Also how can I disconnect from a connected connection?? I am trying to make a program that will work through multiple computers that I can diable dial on demand?? But still have people be able to dialup from there machine. I know how to do winsock just not the commands to connect or disconnect the connection.
John
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Want To Know That Connected With Internet Or Not From A LAN Connected Computer
I have 3 computer which are LAN connected I use Internet. I want to make such a program which can detect that is any of my computers are connected with internet or not. If I am using internet from a LAN connected computer still it can know that is any one of my computer is connected to internet or not. Please help me.
Connected, But....
Hi, Good day to all...
I need some help.. Badly...
I'am currently developing an internet dialer for my work and i'am on the part of dialing to the net itself using an ISP, my problem is when i use MScomm i can connect to the ISP server but i can't surf the RD and SD of the modem is not responding.
Also how could i set the proxy settings and username, password of the dial up? should i use wininet? or what should i use?
How can I solve this problem..
pls help me here..
or atleast give me some site i could research these stuff.
Thanks..
Still Connected?
is there a way to tell if two computers, that used winsock to chat, are still connected?
USB Connected
hi guys! can you give an idea of connecting vb program into a usb. example is a digiCam!
I Think I'm Connected... But How To...
I am pretty sure I am connected to my access database, but I cant get any information to display from my database, or enter info? here is the code I am using to connect:
ConStr = "DSN=MYDSN;UID=;PWD=;"
Set Con = New ADODB.Connection
Con.ConnectionString = ConStr
Con.Open
I get no errors so I do think it is connected, but I cant figure out how to access or add data? I think I'm close but not yet? any help would be great!
Connected Or Not?
my application needs to do some internet actions but I don't want it to make my PC connect to internet. I want it to check if i'm connected and then, if I am, it does the actions. i really hope someone can help me. it's very, very important
Who Is Connected To Me?
Good day to you, I am looking for a new add on for a program of mine, so I was wodnering if it was possbiel to see the IP addresses of people or machines trying to connect to me, like show them in a listbox or listview and if I click on them in the listbox it would block them. then when they click on one to be blocked, it gets added to another listbox that is a block list?
Can I do that?
Thanks !!
Am I Connected
hello,
i'm probably not the first one who is looking for this feature.
i'm seeking for a code that will check if i'm connected to the internet. regardless if i'm using lan or other network.
i looked a lot for such a code but all i could found was codes that :
1. were confused with the lan connection (showing online while offline because the check for lan connection and not internet connection).
2. halt the computer for too much time before they return false. (not reasonble period).
well, i hope you had better luck and found a good code. please send it to me, i really need one.
thanks
ERan
Connected??
Hey i am making a program that i want to open and show if there on the internet. But if thre not on when it opens it goes to the tray and restores its self when internet connection is dected, Can anyone help me?
Connected Or Not?
How can I detect weather or not I am connected to another users computer? (Through Winsock)
FTP Help (already Connected)
Hi i was looking to add some features to my ftp program. I'm already connected the internet and i was wondering how i could change the chmod, rename a file, delete a file, and refresh the directory(i might be able to handle this one though)
How Can I Know That Someone Connected To The Net
Hello, is it possible for me in a program to detect when
someone has open is dial up connection to the net??
(i.e when he connect to the net i will display a message box )
more then that where can i find information about event that happen during the surf of the user in the internet
(i.e the user start download process, and so on...)
does someone built some class with event that i can use ??
or thire is an api that dill with this matter??
thanks alot for any possible answer
janiv
Is Connected?
any one here has a sample program for thes pseudocode
the program should detect your internet connection. The program should ignore your LAN (or any permanent network connection)
PHP Code:
IF CONNECTED
MSGBOX "CONNECTED"
ELSE
MSGBOX "NOT CONNECTED"
END IF
here's what i did
PHP Code:
if connected then
Shell ("E:Program FilesICQNDetect.exe")
Shell ("E:Program FilesYahoo!Messengerypager.exe -quiet ")
Shell ("E:Program FilesMessengermsmsgs.exe /background")
else
timer1.enable = TRUE
end if
THANKS IN ADVANCE!!!
Is My Pc Connected To The Web???
how can i find out through vb if my pc is connected to the web irrespective of what i used to dialup to the web.?
thanks in advance
Connected
Soemone gave me a url b4 that contained code that was reliable to tell if the user is connected to the net, whether he be on a lan or dialup or whatever. If nayone else has similar code or knows where i can find it, plz help
-joe
?
IS CONNECTeD?
i have code that tells me if the user is connected to the net, but this only seems to work with a dial up conneciton..if thee user has a cable modem or somethign liek that, how else could i detect the connection?
-joe
?
Notepad Connected To VB
i am not sure where to ask so i jsut took the General forum!!
i have a text file in notepad and i open it through visual basic -like this
Open "D:23_03_2004ClientNumber.Txt" _
For Input As #1
Input #1, InfoFromNotepad
Close #1
Now i only have one thing saved on the first line on the notepad and that value is returned to "InfoFromNotepad"
But if i wanna save somethig else on the second line on my notepad how do i access that line??
Thanks in advance
Is Winsock Still Connected ?
Hi i have multiple users connecting to me and how could i find out the number of people currently connected ? I add players in Connection_REquest, but how can i find out if the other user has disconnected... Can i loop through the winsocks and simply look if they are still connected or something?
Connected Time
Hi all, just a quick question (hopefully), does anyone know how to find out how long you've been connected though dial up for??
Thanks in advance
Poncho543
See If IP Is Connected To Network
Hello all,
I have a few computers on a network.
I have a form that is a floorplan of the machines on the network, with a command button for each machine.
I use RealVNC to view and work on these machines.
Right now, when i click on a command button it starts the VNC program for that machine.
What i'd like is, if there is a way, when the form loads(preferably) or when i click on a command button, it checks to see if that machine is connected to the network before continuing. If it is not connected the button that represents that machine changes color.
If it helps VNC uses port 5900. and the IP's of the machines are all under the same subnet.
I am very new to visual basic and I use Ver. 6. If anyone could please help I would be thankfull.
Thanks in advance.
Lan Connected Program.
hey evryone.
im am not very good in prgraming but i want to learn.
i use visual basic 2005 express edition.
i nedd a program that showse a string from a computer to another.
can someone plz help me?
thank you.
Winsock Who Connected
Is there a way to tell who has connected (IP or Hostname) to a Winsock in a VB Application?
If Not Connected To The Internet...
OK, I need to check for the presence of a LAN based internet connection.
I have tried every code I have seen on this site as well as others.
I've used many different API's, none passed this test.
1.) I run the code, It says I'm connected. Perfect, program seems to be working.
2.) Then I pull the network cable out of my cable modem, Insuring that I have in fact lost my internet connect.
3.) I run the code again. EVERY ONE of them I've tried still say I'm connected.
4.) SOLUTION: None of them actually work as advertised.
DOES ANYONE HAVE CODE THAT ACTUALLY WORKS PROPERLY?
If so please let me know
email me: spot10@attbi.com
Edit: Please dont hijack other member's threads
If Not Connected To The Internet...
How can I make my application so on form load, if the user is not connected to the internet, a message box appears saying "Please connect to the internet before using this application" ?? Hope you can help,
Thanks,
-Gaz
IRC: Connected PRoblem
Im having problems while making an irc client, I cant use winsock state to check wether im connected to an irc server because the socket will be connected but your status on the server would be Conencting...
A bit like a game, you cant send "say commands" while the game is in intermission (Loading) but you are connected. See what i mean?
I want to be able to check wether im connected so i can issue the auto join channel commands. Any help?
Cheers
If Keyboard Connected
Hello, i have a question... is it possible to check if keyboard connected at the moment?...
LPT1--Anything Connected To It?
I've got an application that users run, say Start.exe, and two other applications, say Proggie1.exe and Proggie2.exe. Start.exe checks the users system and if certain criteria are met, it starts Proggie1.exe, otherwise it starts Proggie2.exe. One of the criteria is to see if there is a printer connected to LPT1. Is there anyway that I can check to see if anything is connected to LPT1?
How Do I Know When Have I Connected To The Internet??
Hi I want to make a program that works in the background, and detects when I go online, and offline, and marks that time, so I know how long have I been online(i have a dial-up conection and a 56k modem). I know that there are counters to be downloaded from the net, but this is more fun.
P.S.I'm from Croatia, so my english sucks, sorry.
Keyboard Connected
Hi.
How can I check if there's a keyboard connected to the computer running my software ?
Thanks a lot
Connected/disconnected????
How will i know if im still connected or not?
Code:
sConn = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=DSN=MySqlData;DESC=MySQL ODBC 3.51 Driver DSN;DATABASE=MyData;SERVER=;UID=root;PASSWORD=;PORT=;OPTION=3;STMT=;"
Set objRs = New ADODB.Recordset
sql = "SELECT Code, Description from Department;"
objRs.Open sql, sConn, adOpenForwardOnly, adLockReadOnly
there will be an error if i issue this code while my MYSQL Server is down,is there a way that i can detect if my server is down or not?
pls help....
Internet Is Connected Or Not
internet is connected or not
Hi Guy's
How to can I know if the internet is connected or not by the code
I want from the code to display Msgbox " is connected " if the internet is connected with my PC
Please advice me do make this code
USB Cable Connected Or Not
is it possable to know the usb port is connected with web cam or not? how to know when someone disconnected the usb cable?
Winsock, Connected??? Help!
I was wondering if you could help me on checking if the server is started or not.
so that I can make a offline/online function..
I have tried this:
Winsock1.Connect "192.168.46.12", "8866"
but don’t know what to do now, I don’t know if the connection is made or not.
How can I check that?
Connected To Internet?
..or not...
I found this code, but it doesn't seem to make any difference if I'm connected to the internet or not.
VB Code:
Private Declare Function InternetGetConnectedState Lib "wininet.dll" _(ByRef lpdwFlags As Long, ByVal dwReserved As Long) As Long
VB Code:
If InternetGetConnectedState(0&, 0&) = 1 Then Call CheckSourceUpdate End If
I think it's getting confused as I'm behind a router. Is this the case or is there another way of testing?
The problem is that any Inet commands hang if there is no connection.
Thanks
Network Connected
Hi there everybody - I'm new to this forum, just joined today.
I'm developing an application that uses SQL Server via a mobile computer. Sometimes the notebook will be connected to the SQL Server via the network, but at other times it will be disconnected and using the MSDE installed on the local machine. There is a limitation in the SQL Server DMO library function ListAvailableSQLServers - this will only return the correct listing if a live network cable is physically plugged in to the computer (or a wireless network is available).
I need to be able to detect wheter or not the network is connected before calling the SQL-DMO library.
How do I do this?? I have scoured the net for help, but nothing pops up for VB6. For VB.NET or C, no problems....
Appreciate any help that is forthcoming....
Thanks!
Internet Connected?
How can I detect if the computer is connected to internet (also please mention if I need any components)?
What Exe In C:windows Is Connected To Wan?
Hi all
Is there any way that i could find out what are the .exe files,inside windows dir, that are connected to the wan?
If was possible i would like to check were was the exe connected to, but that's not the most important.
Adsl Connected?
I was wondering if there is a code, i jsut wanted to have it so that if there was a conection on my adsl i could change the background olor of a labl, is this possible?
Connected To Internet, (is Really)???
Hi folks,
I needed to find if a user is connected to internet or not. And if so report the duration.
I used the ping command to find if the connection is available or not. Worked all right.
But, now I find that my client has removed the dialup connection mode and installed DSL. Here all the clients in the LAN can share connection, the moment it is available.
The problem is that every time I ping I get the value as true as the connection is always available. Thus, even though the guy might not have used the connection the report shows that hs was connected.
Guys help me out!!!
Mandark.
Check If Connected
what's a good code (I have vb 6, learning edition, without Inet)
to check if somebody = connected/disconnected with the internet?
Users Connected To PC - Who?
Well not in a programming way but you could run a command shell
then type Netstat, this shows all the IP connections in / out of the machine
also typing in ping -a <vaild ip> will try to resolve the host's name
HTH
G
Is It Connected To The Internet?
i want to find out if the computer that my program is running,
is connected to the internet!
i tried this code that i found here,
but it shows that i'm always online, which is false,
cuz i unplug my connection
here's the code:
VB Code:
Private Const INTERNET_OPEN_TYPE_DIRECT = 1Private Const INTERNET_FLAG_NO_CACHE_WRITE = &H4000000 Private Declare Function InternetOpen Lib "wininet.dll" _Alias "InternetOpenA" _(ByVal lpszAgent As String, _ByVal dwAccessType As Long, _ByVal lpszProxyName As String, _ByVal lpszProxyBypass As String, _ByVal dwFlags As Long) As Long Private Declare Function InternetCloseHandle Lib "wininet.dll" _(ByVal hEnumHandle As Long) As Long Public Function InternetConnectOpen() As Boolean Dim hInternet As Long InternetConnectOpen = FalsehInternet = InternetOpen("Vb FTP Transfer", INTERNET_OPEN_TYPE_DIRECT, _vbNullString, vbNullString, INTERNET_FLAG_NO_CACHE_WRITE) If hInternet > 0 Then InternetConnectOpen = TrueCall InternetCloseHandle(hInternet) hInternet = 0 End Function Private Sub Command1_Click()If InternetConnectOpen Then MsgBox "online"Else MsgBox "offline"End IfEnd Sub
Connected To Internet?
hi all,
does anyone know the best way to check for an active internet connection?
this is not as stupid as it seems...
1. loads of scripts use the registry, which is though not compatible under different win OS (one i found does work with w98 but NOT with w2k);
2. loads of scripts verify lan or dialup or adsl connections, but not all simultaneaously.
does someone have a clue on how to do this?
hope you can help out.
best regards,
w.
Possible: Have 2 Winsock Connected To 1?
Hey, i ahve a quick question. Is it possible to have 2 or more people (clients) connect to the same winsock control on the server?
For example. If i set the Server's Winsock to +LISTEN+ and have 2 other friendz connect from diff computers onto the same winsock(eg. Group Chat)... possible or not possible?
Thanx,
Mikelo2k
Who's Connected To Your Machine?
U know when you go to shut down a 98 machine on a network
and get a message "There is one or more users connected to
your machine, shuitting down will disconnect these users, do
you want to continue?"
Is there any way in VB to check what machine name, or IP
address, or better still username is supposedly connected to
your machine?
|