Log Into Router With HttpWebRequest?

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


ADVERTISEMENT

Html - Httpwebrequest - Obtain Form Element Id's / Names During An Httpwebrequest?

Dec 28, 2011

What I would like to know is how to obtain form input elements during an httpwebrequest?

[Code]...

Is it possible to obtain these input elements during an httpwebrequest without having to view the html code?

View 1 Replies

Can't Get IP From Others Pc's Connected To Router

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

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

IP Adress Through Router?

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

Retrieve Router WAN (outside) IP Address?

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

List Up All Connected Pc To Router (wifi )?

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

.net - Block A Website From Accessing Router?

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

Login To My Router / App With Proper Credentials?

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

VS 2010 Router Login Via Windows?

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

C# - Get Router Name And IP As Shown In Windows Network Tab (in Code)?

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

Make A Program To Manage Homehub 2.0 Router?

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

Make A Router Auto-login With Vb6 Winsock

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

Net.Sockets : PC Portnumber Changes Dynamically In LAN Via (DLINK)router?

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

Open Internet Explorer And A Router Using The Ip Then Login

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

Send AT Commands To Router Network Port?

Aug 9, 2010

How can i send AT commands to my router network port?

View 6 Replies

Textbox To Display My Default Router Ip Address?

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

VS 2008 - TCP Online Chat / Configuring Router

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

DB/Reporting :: MS SQL Cannot Pass Port Forwarding Function On Router

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

Checking IP And Port Of Switch / Router That Links To Remote Device

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

Making A Code That Will Login To A Cisco Router - "if Wait Fails Goto"

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

How To Use Httpwebrequest

Mar 21, 2010

I have no idea how to use httpwebrequest anyone can show me an example of code to do the following

1.Navigate to website with cookies

2.use this cookies and website referrer to download file with direct url (url...)

View 3 Replies

.net - Cannot Use Httpwebrequest With Listbox

Jan 4, 2011

I am facing a strange problem with listbox. I need to scrab whois information. I used the following code to get source code of the whois query. It works fine if I use a textbox. But I need to use this for multiple url and therefore need to use lixtbox to loop through url list. Unfortunately when I use listbox1.selecteditem or listbox1.text it does not work. But this same code works with webbrowser.

Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://www.networksolutions.com/whois/results.jsp?domain=" & listbox1.selecteditem)
request.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)"

[code]....

View 1 Replies

C# - Specify Range >2GB For HttpWebRequest In .NET 3.5?

Jul 4, 2011

I'm building this class to download files in parts/sections/segments. In .NET 4.0, I can use this code to specify the range to download from

long startPos = int.MaxValue+1;
HttpWebRequest.AddRange(startPos);

and it works because there is a long overload for the AddRange method. When I looked up the .NET 3.5 version, I realised the AddRange() method allows using int only. The possible workaround would be using the AddRange(string, int) or AddRange(string, int, int) methods. Since the class will have to work in .NET 3.5, I'll have to go with the string specification but unfortunately I can't seem to find any sample code that shows how to specify ranges using this procedure in .NET 3.5. Can anyone show be how to do this?As the first code sample I wrote shows, I would like to specify a range of type long instead of int. Using type int allows requesting for byte ranges only up to 2GB but long allows requesting for byte ranges beyong 2GB.

The question therefore is: How do I specify byte ranges of 2GB or higher on HttpWebRequest in .NET 3.5?

View 3 Replies

How To Control Httpwebrequest

Sep 19, 2008

Here is my code:

Code:
Public Function getHtml(ByVal url As String) As String
dim objrequest as httpwebrequest
dim objresponse as httpwebresponse
Try

[Code]...

My problem is: for some url that function takes a long time. So, i just want to cancel the response after a given time. I tried with a timer control but that is not working. What to do? How to modify this code so this function will return result within a given time whether httpwebresponse completed or not?

View 2 Replies

HttpWebRequest Fileupload?

Dec 8, 2010

i allways get an Out of Mem Exception and the usage of my memory is growing and growing in the taskmanager when i execute follwowing source code:

Imports System.Net
Imports System.Text
Imports System.IO

[code].....

View 3 Replies

Httpwebrequest With If Statement?

Oct 6, 2009

how to write a httpwebrequest, however i'm unsure of how to write it with a if...statement. I have a file that I need to download, however it ususally doesn't get posted until sometime Tuesday afternoon, so what I need to do is have the program continually check say once about every 5 minutes until the file has been posted and then download it.I'm presumming using an if...statement is the best way to accomplish this, basically if true(file exists) then proceed, else wait 5 minutes and rerun process.

View 7 Replies

Logging In 0 Httpwebrequest

Mar 22, 2011

can any one see any thing wrong with my code. I swear it did work once or twice. * code now removed as updated below

View 2 Replies

Use A If Then Statement With Httpwebrequest?

Oct 5, 2009

use a If then Statement with Httpwebrequest? Let me explain my senario. I have a file that needs to be downloaded from a web site once it is posted. Currently one of our staff manually goes out to the web site multiple times to check to see if the file has been posted, they then download the file, extract it's contents and use some of the info for reports that must be sent out the same day.

[Code]...

View 1 Replies

Using Credentials With HttpWebRequest?

Apr 19, 2010

I am trying to write a program that goes to a webpage and gets the html and puts it into a mshtml document but I always get an error. I know this example works when the webpage doesn't require Credentials. By the way i'm using vb 2008 express.

Dim theCredential As New System.Net.NetworkCredential("username", "password")
Dim Doc As mshtml.IHTMLDocument2

[code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved