How To Get Router's IP Address
Aug 20, 2005
I'm using the following code and it yields me my computer's private IP address:
Code:Private Sub frmGetIP_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]...
However, this is NOT what I want. Basically what I'm looking at doing, is using Remote Desktop Connection from Windows XP Professional, but in order to do that, I need to know my IP address. My IP Address is dynamic (it changes).What I'm looking at doing, is building a website that I can log onto with a username and password, that posts my router's IP Address.My question is, how do I programmatically obtain my router's IP address? It's the same address found on [URL].. I tried viewing the website's source but it's not all there.
View 19 Replies
ADVERTISEMENT
Sep 23, 2007
I am trying to retrieve the WAN side IP address of my router within a windows form. I am using VS 2005, programming in VB.net, developing a windows application (not a web app).
View 3 Replies
May 19, 2010
I would like to know is this possible.I have a simple form in vb2008 with a button and textbox when i press the button i would like textbox to display my default router ip address.
View 14 Replies
Feb 16, 2012
i need to create a network map (from any pc). For now i get my own ip, the router ip, but i can't get the IP from others pc's connected to the router. Can i get the IP's only with the framework? or i need another external library? [code]
View 1 Replies
Jun 27, 2011
I am having difficulties connecting to a computer through a router. The problem is that when i use an internet web page to get my IPAdress, I get the Ip Adress of my router and what i really need is to get to The Machine that has a server running on it. Is there anyway to get pass the router and connect directly to the machine without using Port Forwarding.
View 4 Replies
Jun 27, 2012
How to successfully log into a DSL-Router (Model: Speedport w504v Type A).I wrote a function usinig HttpWebRequest and HttpWebResponse. So far this function is not finished and is only for finding out the right login process.[cde]...
View 1 Replies
Feb 6, 2012
Is there a way to list up all connected pc to my router (wifi )? Even if they arent on same LAN (like ipod touch). Or list list all user that are using internet? Atm I figured out this code :
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://192.168.15.x/DHCP_Static.asp")[code]....
Which i though was suppose to list connected client but logged on my DS and didnt listed it up. Maybe it doesnt list DS?
View 2 Replies
Jul 2, 2011
Im programming in VB.NET and i dont know how to block a website from the router. Something similar to a Patch Blocker or similar to Anon Proxy Server just i need to know how to do this in vb.net. More info: The thing is that i have a ps3 and want it to block certain url from accessing my router.
View 1 Replies
Feb 23, 2011
I need to find a way to login to my router/ap with the proper credentials and read from a designated textbox from the router's page and then virtualy submit some input that I might enter in my program to go as like a textbox.
View 3 Replies
Jun 20, 2010
I'm currently making a program that will disable my wireless internet at a certain time and turn it back on at another time.
On my OLD router the login page was built into the webpage itself which made it easy to login via VB code
On my current Sky router they use Windows Security to Login. (Picture below)
Does anyone know how in Vb to automate the login.
View 7 Replies
Oct 1, 2010
Basically, if you go to Start and click Computer and then click on the Network link on the left hand side, you'll notice on the right hand side several categories, one of which is titled "Network Infrustructure", in that category, my router is listed, and in my case, it is "LINKSYS WAG160N Wireless-N ADSL2+ Gateway" and when you right-click and select properties, it lists basic info such as internal/gateway IP address, on mine it is "192.168.1.1" I would like to know how to retreive this information in code, preferably a Windows API so that i can call it using a legacy VB6 app. Also, even if you just know a .NET version or a Delphi version, please do list that as well as i can code in both. However, the answer i'm ultimately seeking is a method to access this via VB6 so that would probably be a WinAPI call (will upvote & select this as answer), however, other methods are also welcome incase i can't find a legacy method (i will upvote these).
View 3 Replies
Jun 24, 2010
I want to make a program to manage my homehub 2.0 router.There's a reset option which requires a piece of script to be run;
<script type="text/javascript">
<![CDATA[
var restartButton = new Button("restart","","Restart my BT Home Hub",function(){restart_ajax();});
]]>
</script>
I think this will cause my router to reset, although I'm not sure.How would I get this to run in a vb.net program?
View 6 Replies
Aug 8, 2011
I have a problem to make a program for autologin my tplink router if I open a connection example : 84.82.1.123 port 80 with winsock (this is my router IP Address ) I can not get my router menu HTML pages. because the router ask for the user name and password How can I send my User Name and Password with this winsock? This Picture was captured when I access 84.82.1.123 with IE How to make an autologin program with winsock to my router?
View 2 Replies
Feb 12, 2012
i am creating server/client application using .net.Sockets something like cybercafe software.Im following this example on codeproject Simple Socket Chat Program there is no problem i run it on local pc. But when i run the client in the other pc in network i got a problem.
says :No connection could be made because the target machine actively refused it.
I tried to use netstat -a on cmd and i found out that the portnumbers of all the p.c on our network always changes.Is there any way to do it without using portnumber and just hostname or ipaddress only.
View 1 Replies
Nov 18, 2009
How would I open internet explorer, open a router using the ip then login. The login it asks for is a popupbox type.
[Code]...
View 2 Replies
Aug 9, 2010
How can i send AT commands to my router network port?
View 6 Replies
Dec 22, 2011
I've been working on a tcp online chat. I heard that you need to configure your router to allow other pc to connect or something?
Server :
Imports System.Net, System.Net.Sockets
Public Class frmServer
Dim serverSocket As Socket
Dim clientSocket As Socket
[Code] .....
View 8 Replies
Oct 2, 2008
I have setup a MS SQL server in my computer and enable the sql server to listen to the TCP/IP port 1500. I can use my vb.net program to access to the sql server from another pc within the same LAN by using the following connection string "Data Source=192.168.1.101,1500;Database=ABC;UID=SA;PWD=123;
But if I changed the "192.168.1.101" in the connection string to the IP address that provided by the ISP (i.e.: "Data Source=<IP from ISP>,1500;Database=ABC;UID=SA;PWD=123 the connection string do not work. I have set the port forwarding function in the router as forward all TCP from 1500 port to IP 192.168.1.101. But it don't work neither......
Then I checked the port 1500 with the webpage below: [URL]
It show that the port 1500 is closed! But if I use DMZ function on the router to explose my computer the internet.... the above webpage can checked the port 1500 is opened! And I can successfully connect the sql server with this connection string
"Data Source=<IP from ISP>,1500;Database=ABC;UID=SA;PWD=123;"
Is that the mssql cannot pass the port forwarding function on the router? I have set the port 8080, 21 forward to another IP on the router and it work fine......
View 1 Replies
Jul 6, 2011
Are there any IP Address filters or masks available in Windows Forms as per following screenshot? A backslash shouldn't be allowed or it should be filtered somehow.
View 1 Replies
Aug 11, 2009
SocketException was Unhandled: Only one usage of each socket address (protocol/network address/port) is normally permitted I get this error every time i click collect a second time.
[Code]...
View 3 Replies
Mar 8, 2009
Can anyone point me to some code which can help obtain the network address from the host IP and subnet mask?
View 3 Replies
Oct 10, 2009
Our company has setup several remote devices that link to a switch Whenever there are problems on the device, some technicans will replace it using a new one We have a vb program that can automatically update the device setup in our server when technicans replace devices. So we do not need to login and update the setting manually However, our program cannot handle the case that there are more than 1 device that need replacement Therefore, our idea is to retrieve the ip and port of the router/switch that links to remote device using VB.net.
View 2 Replies
Aug 6, 2011
I made web browser which consist address bar that I use it to type addressess in it i.ewhen I type [URL] it opens [URL] but when I go to anther page in google it doesnot show it's link in address bar lix InterntExplorer or other international browsers so how to show any link or any sub page's link in my browser address bar ?
View 1 Replies
Nov 27, 2009
I'm trying to use the DHCP API (using the references on pinvoke.net) to retrieve a computer's MAC address when given the IP address but I can't get the code to work. I've run all the C# code on pinvoke.net through the C#-to-VB converter but I'm stuck now.
Here's what I have so far. The value of res is always 5 (should be 0). Thing is, I can't find any documentation on what the return codes mean
vb
Private Sub GetMACDim client As String = "1.1.1.1" Dim server As String = "0.0.0.0" Dim si As New NativeMethods.DHCP_SEARCH_INFO si.SearchType = NativeMethods.DHCP_SEARCH_INFO_TYPE.DhcpClientIpAddress si.ClientIpAddress = Convert.ToUInt32(StringIPAddressToUint32(client)) Dim res As UInteger Dim oInfo As IntPtr
[code]....
View 2 Replies
Jun 28, 2009
' Use Your work Group WinNT://&&&&(Work Group Name) Dim DomainEntry As New DirectoryEntry("WinNT://Wokgroup") DomainEntry.Children.SchemaFilte
[code].....
View 8 Replies
Mar 3, 2011
I'm currently making a code that will login to a cisco router, and show the version, then return the version to me. The connection to the cisco router is using telnet, and I'm using Dimac's w3Sockets code to Connect, login, and return data. Reference
But currently I'm having some problems, since the router sometimes need the login typed 2 times, or having a key pressed to update the terminal(telnet),meaning i have to check if it gets logged in or not. But the problem is that using dimac code, i can only wait() and waitFor(), and if it none data comes whilst waiting, it keeps on waiting. Is there away to do like: "if wait fails goto"
I've tryed "on error goto", but since its not a error, but just keeps waiting, that dont work. Also, To locate where it gets stuck I have it write to my textbox everytime it takes a step in the code, but its like the dimac code overtakes vb.net. ex: If i send some text to a textbox in the same sub as the connect code is, and it gets stuck at a wait, it dont even write to the textbox, eventhough the textbox.text command was suppose to execute before the wait().
Code:
Private Sub telnet(ByVal port)
TextBox3.Text = TextBox3.Text & Environment.NewLine & "Telnet func Called" 'Cant execute this if it gets stuck at login below. ??
Try
[CODE]...
View 5 Replies
Feb 9, 2011
In member register page, I added email address validation but it only check the email address format, such as .com, .net, .org.If user inputs fake account such as aaabbb01010@gmail.com, how to verify it and return an error?
View 2 Replies
Oct 3, 2010
how to assign a static ip address and dns adress by VB2008?
I search in MSDN,use system.net.ipaddress??or something else?
View 3 Replies
May 11, 2010
does anyone know how to get a computer's mac address with an IP address?
View 25 Replies
Jan 30, 2010
where i put the *'s i get the error "The parameter 'address' cannot be an empty string. Parameter name: address".
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Dim mail As New MailMessage()
Dim SmtpServer As New SmtpClient
[code].....
View 9 Replies