VS 2010 - How To Get Location Of IP Address
Apr 23, 2012Some example or idea about how to get the location of some IP address.
Example: 187.72.136.139 = Brazil
Some example or idea about how to get the location of some IP address.
Example: 187.72.136.139 = Brazil
I have seen other discussions raising this topic however I'm far from confident with the results I'm getting. I wonder if someone can add some more insight into this topic.We want to dynamically load the correct contact details based on the visitor's state in Australia.We are using IP 2 Location and went out to test the database. I posted on Facebook a request for everyone in New South Wales to click a link on my post, I stored the result. I understand this is based on trust but the results are fairly unconvincing!
RESULTS: http:[url].....
1. i need to find the place / city / location from IP address. does anyone know about this?
2. I want to know if there is any way to get a short URL for the db entities(i.e; if i press my website and type a db content it should go to a new page)for ex i have a site called [URL] here in actual code if i press [URL], it redirect to new page to display the content of abc.Now, what i want is i need to type [URL] and it should redirect to new page with info abc.
I am doing electrical circuit simulation in vb.net . i want to store each component in a particular address location. If i click the relay component then pop up come and ask the location then if i give 0001 it will store in that location .i don know how to do it...i give a model image in the below link,
[Code]...
In a WinForm application, if you want to get the IP address of the machine the code is running on (for instance, to log in the database what the IP address is when a user deletes a record), I would use this
Dim xEntry As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName)
Dim ipAddr As Net.IPAddress() = xEntry.AddressList
blIP.Text = ipAddr(0).ToString()
While the code works, and it returns the correct IP address (for example: 140.139.138.137), Visual Studio doesn't like that code, and tells you that GetHostByName is obsolete, and needs to be replaced with GetHostEntry.
But if I do that, then I get back something that does not look like an IP address:
fe80::28ba:e091:1056:949f%11
So my question is, if I'm not supposed to use GetHostByName because it's been replaced by GetHostEntry, how come GetHostEntry doesn't give me the IP address?
[code]...
I am currently using this last part to save a bitmap I created.This works, however, by saving it in the .exe directory.How would I specify an address for my .bmp to be saved..or better yet, how could I use a SavefileDialog or BrowseFileDialog to specify an address?
I have the follow row of sample data:
Quote:
RickiKitt10|NzMyMQOTkQ|173.234.120.242:62063:accessworld:bYRLngChRYc||RickiKi1037||
How can I extract the IP address? 173.234.120.242
Does anyone know how I could get my app to show the ISP of the machine it is running on, I can get internal and external IP addresses, just need to know if possible and how to look up ISP from this information
View 1 RepliesI wanna make a form. Inside my form, I want to show a GPS adresse, and a compass. The GPS and Compass shield is connected by my serialport. The compass, I want to show as a image. It has to move as the Compass is. When I turn Compass to left, the Compass in my form turn left...
View 9 RepliesI want to know on how to scan for the memory address by using its value.I am developing a small app that acts like a advance process viewer that shows all the address with the same values in a program.....
View 5 RepliesAre 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 RepliesSocketException 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]...
Can anyone point me to some code which can help obtain the network address from the host IP and subnet mask?
View 3 RepliesI want to add an address book to my emailer. I have 2 buttons on my main form,
button1 = Add Contact To Address Book , button2 = Import Email Address.
Basically when I click add I want another form to open and the user to be able to add an email address and save it and if I click import I want the same form as the "Add contact" and enable the user to select a contact and add it to textbox1 on my main form.
Lately I have been making a program (I guess you could call it a trainer), which would read the process memory to get the character's coordinates in a game. It later makes a simple map and show it in a separate windows. I built this program in VB.net, and it works surprisingly well. The only problem is the fact that the memory address where the coordinates are stored, changes every time I restart the game. Could someone please help me find a way, for the program to find the correct address by itself? If it helps, the game I am referring to is Minecraft.
View 2 RepliesI 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 RepliesI'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]....
1. Can I include a database in an exe file? - I am trying to create a small launcher application which contain 10-20 IP addresses with name, addresses, phone and email for people I help out on a regular basis. I would prefer if I could have the DB containing this info included in my launcher app, so I could carry it around on a USB stick.
2. How do I get mstsc.exe (remote desktop) to launch with an IP address from my DB above?- In my small app I am trying to add a launch button for each person. So if I am helping "person1", then I click the button next to him, and it launches my remote desktop of PC Anywhere to his IP address....
My initial thought was to use an ini file with my exe file, and modify the ini file with data through the app, but I want to be sure that there is no way I can include this information in the exe file.As I want to be able to change the connection information through my app interface I reckon I am forced to use either a SQL DB or some sort of file DB right?
How would I make a reference to a DLL that's located in a subdirectory, like in?
View 2 RepliesI need to select the address option on this webpage programatically with vb 2010 webbrowser.I think the html code is here
<select size="1" name="bytool" style="font-family: Arial; font-size: 12px; letter-spacing: -1pt" onChange="searchTool(document.frmNavigation.bytool.options[document.frmNavigation.bytool.selectedIndex].value)">
<option value="none">Select Item</option>
[code]....
I am trying to search my GAL, as my GAL contains over 300k names its not ideal to load the complete list. Now, I found some code on MSDN which allows me to read the GAL, but I can figure out how to search. I would need to use a similar to the SQL LIKE% as there multipul exchange users with the same surname.
MSDN Code.
Dim itemx As ListViewItem
' Create an Outlook application.
Dim oApp As Outlook._Application = New Outlook.Application()
[code].....
Is it possible to add a new Trusted Location for word 2010 using VB.Net?
I want to do the same steps in the below link via code, is that possible ?[URL]..
So I'm working on an app that needs to create files on the end user's computer to store info in (mainly text files and HTML files), and I'm trying to figure out the best location to write these files to. I've been reading various articles @ this online all afternoon, and the advice I've read so far seems to be "all over the place".From what I understand, if the end user is not logged into Windows as "admin", then there are a limited number of locations where files can be written to their computer, without them having to deal with UAC popups, etc.I would like my end-user's to have to jump through as few hoops as possible (none, preferably ), so should I only write my files to these specific locations? when I write the files to the end-user's computer, I have 2 different types of info that needs to be stored...
Info "A" is temporary data that only needs to be stored/accessed while the end user has my program open (and this data can be safely deleted each time they close my program).Info "B" needs to be stored somewhere where it never gets deleted, so that it can be accessed by my program for as long as the end-user has my program installed on their computer.So would it be best to store info "A" in the Temp folder, and info "B" in the App Data folder?And for any files that I store in the "temp" folder, do these files get automatically deleted when the end-user turns off their computer, or do I have to programatically delete these files every time my program exits?
Using either one by itself works fine but if I use both then it behaves strange.It will Maximize just fine but when I click the Maximize button again to take it back to the original size it resizes the window to the original but then immediately resizes it back to the smaller size location. So I end up with a window whose upper left corner is where it belongs but the window size is the same as if it was maximized.
View 7 RepliesHow to move in a datagrid object. which of the column 1 and row 1 I want to move to the row 1 and column 3.
View 3 RepliesI have Visual Studio 2010 Ultimate.
When I click on "New Project", under the "Name" textbox, I get no "browse" button to save the project somewhere else other than the default Document and Settings folder. But, my friend see that "browse" button under the "Name" textbox.
How can I save the project somewhere else other than the default Document and Settings folder ?
In my Windows application I have 2 forms, Form1 & Form2 in Form1 there is a Button so now I want to place the form2 exactly bottom of the Button when I click.
View 3 Replies ' Use Your work Group WinNT://&&&&(Work Group Name) Dim DomainEntry As New DirectoryEntry("WinNT://Wokgroup") DomainEntry.Children.SchemaFilte
[code].....
Im trying to make a program that works a bit like the log in on a computer. But i cant make it load a different .config file depending on what username is used. I want it to load a config file from different directories that match the username. eg if the username was bob then it could be: C:MyProgramLoginBobapp.config I've been teaching myself and this has had me stuck for ages.
View 16 RepliesI know how to calculate a city's location on the world map by using its geographical coordinates as a pixel on the map but how in .net can I draw a link with a cuve? Once I have the curve does anyone know how to determine where the curve should be for the shortest route?
View 12 Replies