Get "real" IP Address?

Aug 7, 2009

I'm looking for a function that will give me my real IP, not my local IP. the function i currently have, returns the ip in network and sharing center which is 192.168.2.100 But if I go to whatismyip, then it gives my real IP.How could I get this using VB.NET?

View 3 Replies


ADVERTISEMENT

VS 2010 - How To Get Real IP Address

Feb 1, 2012

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?

View 4 Replies

IP Address Filter Or Mask To Only Allow Valid IP Address Before Pinging Or Testing For Network Connection

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

Usage Of Each Socket Address (protocol/network Address/port) Is Normally Permitted?

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

Obtaining Network Address From Host IP Address And Subnet Mask

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

Make The Website Address Show In Browser Address Bar?

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

VS 2008 : Use The DHCP API To Retrieve A Computer's MAC Address When Given The IP Address?

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

Get Hostname, IP Address And Mac Address Of The Computers By Domain?

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

Added Email Address Validation But It Only Check The Email Address Format?

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

Assign The Ip Address And Dns Address?

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

Get A Computer's Mac Address With An IP Address?

May 11, 2010

does anyone know how to get a computer's mac address with an IP address?

View 25 Replies

How To Get Real IP

Feb 25, 2011

How to get my real IP using vb.net?

View 3 Replies

Cannot Add Real Player

Jul 7, 2009

I have problem, when I add Real Player in form. This one..

This is a problem...

I reinstalled real player , and nothing happened , the problem still with me.

The VB in the attachment....

View 6 Replies

Error "The Parameter 'address' Cannot Be An Empty String. Parameter Name: Address"

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

Convert Integer To Real

Sep 4, 2009

I have written a VB (6.0) progam that pulls data from a Comm Port. I get two bytes back everytime I real the data (i.e. FF E1).Does anyone know how to represent this as a Real number (or floating point)?

View 5 Replies

Cannot Add Real Player In Form

Jul 10, 2009

My Program is Visual Basic 2008 professional..I have problem, when I add Real Player in form.url...When I add Real Player In the form, I cannot open the form, and it comes this error.url...This is important information..My laptop is HP, and I have vista 64 bit.I have new version of Real Player.I added the Real Player to form from here,,url...How can open the form with Real Player?

View 4 Replies

ConnectionString On Real Website

Jul 29, 2009

How does a real life connectionString look like? I my sample application, I have this in the app.config file:

[Code]...

View 9 Replies

ConnectionString On Real Website?

Jan 16, 2010

ConnectionString on real website

View 1 Replies

Generate A Map Of A Real Place?

May 19, 2011

I am working on a project in which I would like to generate a map. It should be in bitmap form, and should include such things as roads and cities. I DO NOT want to generate a map of a real place.

View 6 Replies

Get Real Assembly Version?

Feb 24, 2011

Get real assembly version? [code]...

View 8 Replies

Get Real Top Window Hwnd

Mar 13, 2011

If an external window (external to my program) is set to TopMost it will be always visible, even if it is not the active window.This means that, for example, if I press a Internet Explorer page, the external TopMos window loses it active state, but remains over the IE web page.Now the question is: How to retrieve by a Timer routine the Hwnd of the REAL Top windows, intending for Real Top windows the ones that MY EYES see as top windows?If the TopMost window is not active both GetForegroundWindow() and GetActiveWindow() get the Handle ot the Internet Explorer window....

View 5 Replies

Get The Real Size Of A Flowlayoutpanel?

Jul 2, 2011

i've a flowlayoutpanel that will be filled with other controls dynamically. this flowlayoutpanel will not have scrollbars. now my problem is to get the real size, comprensive of the invisible part of the flowlayoutpanel.

View 3 Replies

How To Get Real Serial Number Of A Cpu

Sep 16, 2011

what i want is to get the serial number of my cpu.i have used the code you give at your website,that refers at the function GetProcessorId, at 3 different pc's,where all these pc's were using cpu's of the company INTEL.so my problem is that i took the same ID from the 3 pc's i used. is there any way that will make me able to get a real serial number from a cpu,that this serial number is unique?i am using visual studio 2008.do you have something to suggest?

View 3 Replies

Real-time Spelling In .net?

May 24, 2010

Is there any open-source component for VB.NET that offers real-time spelling (i.e., as you type) much like word? I found some free and open source components but without that ability.

View 2 Replies

Checking For Entered Value - Real Number

Nov 14, 2009

Imports System.Math
Public Class Form1
Dim var_ghost As Object
Dim var_number As Double
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code] .....

My question is; when you enter a variable to inputbox like "100.5" it shall return a numeric value at line1 and "100,5" too. But when I need to check for entered value is a real number or not (Look line2) CDbl("100.5") returns 1005 CDbl("100,5") returns 100,5.

View 8 Replies

Convert A Drawing To Real Points?

Aug 25, 2009

I have an application which draws a graphicspath in dot style using pen.dashstyle = dot. after all, i need to send the drawing points to another hardware. I have to extract the points out of the drawing in order to send them to hardware. the background of the drawing is totally black and the dots were drawn in yellow color. as an example suppose a simple circle drawn in dots with fixed distance in yellow on a black background. how i can convert this drawing to an array of points()?

View 13 Replies

Convert OEM Keys In REAL Keyboard Value

Nov 13, 2010

I have the e.keyvalue (or e.keycode) of a pressed Key. Now the problem is, when is pressed a Oem key, to know the real $char of the key, depending from kekboard and language. In few words, starting from the e.keycode (that is not the ascii code), I would like to get the $char that the pressed key whould write in a text box....

View 5 Replies

Display Real Time On Form?

Apr 7, 2010

How can I display a running stopwatch on my form? I am creating a timer but I do not want to use the timer class.

View 4 Replies

FTP Chat Update In Real Time?

Jun 15, 2011

I making a simple online chat using an ftp server by downloading and uploading text. I use a thread to update the chat log continuously. But it doesn't update in real time. Is there a way to create a server that clients can upload to and download from extremely quickly? How do programs like MSN messenger or better online multiplayer games do it?

View 1 Replies

Generate Real Random Numbers?

Jun 30, 2009

I need to generate 'real' random numbers from 0 to 500 (e.g. 247.214, 477.125, 1.247, 54.078, 147.001 ......etc). I am using this method:

Dim Myrand As New Random
Dim Res As Double
For i = 1 To 10
Res = Math.Round(Myrand.NextDouble, 3)
Next

This method gives numbers between 0 and 1. if I use: Res = Myrand.Next(0,500), then this gives Integer numbers.

The questions is: Is this possible with (Dim Myrand As New Random) or I have to try another way (e.g. Rnd() ) for doing this?

View 4 Replies







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