473,666 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access internal network locations from Internet

I have been asked to come up with a way to make a instant message program
that will allow our outside customers by clicking on a name in a drop down
menu can IM who they want.

THe application I have works after telling my router to forward all
communications from Port 5000 to a local IP address that contains the
"Socket Server" program.

mobjClient = New TcpClient("zz.z zz.zz.zz", 5000)
mobjClient.GetS tream()

DisplayText("Co nnected" & vbCrLf)

mobjClient.GetS tream.BeginRead (marData, 0, 1024, AddressOf DoRead,
Nothing)
Send(ipadd & " online")

THe only problem is that all users would get this message that are running
the client........n ot just the individual being requested.

Is there a way in this code sample to tell it to divert to a local IP(or
machine name) running the client within this network?
Nov 20 '05 #1
11 3310
Cor
Scorpion,
I dont think so, but you can look voor NAT (Network Adress Translator).

I hope it puts you a very little bit on the route.
Cor
Nov 20 '05 #2
Thanks Cor.......

I will try looking under vb.net and nat in google.

This topic does not have a lot of information that I can find. It has been
frustrating. It must be able to be done though because MSN Messenger does it
quite nicely.

"Cor" <no*@non.com> wrote in message
news:3f******** **************@ reader20.wxs.nl ...
Scorpion,
I dont think so, but you can look voor NAT (Network Adress Translator).

I hope it puts you a very little bit on the route.
Cor

Nov 20 '05 #3
"Cor" <no*@non.com> wrote in news:3f6c51b8$0 $4255$48b97d01
@reader20.wxs.n l:
Scorpion,
I dont think so, but you can look voor NAT (Network Adress Translator).

I hope it puts you a very little bit on the route.
Cor


NAT won't do you any good if the request is coming from the WAN side. NAT
can only redirect the data properly if the request originated from the
LAN side.

However, here are some suggestions:

-Each user has their own port. All requests coming into that port would
be redirected to a particular LAN user.

-Pass more data to the LAN side (i.e. Username). Have a proxy application
on the LAN server parse and forward the information to the proper client.

BTW, regarding the original posts, I find it funny that your router would
forward a packet from the WAN side with no particular matching NAT entry
to all clients... this is kind of dangerous when you think about it...

--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #4
Thanks Cor.......

I will try looking under vb.net and nat in google.

This topic does not have a lot of information that I can find. It has been
frustrating. It must be able to be done though because MSN Messenger does it
quite nicely.

"Cor" <no*@non.com> wrote in message
news:3f******** **************@ reader20.wxs.nl ...
Scorpion,
I dont think so, but you can look voor NAT (Network Adress Translator).

I hope it puts you a very little bit on the route.
Cor

Nov 20 '05 #5
"Cor" <no*@non.com> wrote in news:3f6c51b8$0 $4255$48b97d01
@reader20.wxs.n l:
Scorpion,
I dont think so, but you can look voor NAT (Network Adress Translator).

I hope it puts you a very little bit on the route.
Cor


NAT won't do you any good if the request is coming from the WAN side. NAT
can only redirect the data properly if the request originated from the
LAN side.

However, here are some suggestions:

-Each user has their own port. All requests coming into that port would
be redirected to a particular LAN user.

-Pass more data to the LAN side (i.e. Username). Have a proxy application
on the LAN server parse and forward the information to the proper client.

BTW, regarding the original posts, I find it funny that your router would
forward a packet from the WAN side with no particular matching NAT entry
to all clients... this is kind of dangerous when you think about it...

--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #6
"scorpion53 061" <sc************ @yahoo.com> wrote in news:#s2r4S5fDH A.3284
@tk2msftngp13.p hx.gbl:
Lucas and all,

Thank you for response.

In the code attached can you tell me how I would:

"LAN server parse and forward the information to the proper client"

This is the server code that the traffic is coming to that is
sending/receiving messages.


Your server code sits on a server that has access to the WAN and LAN
right? Your server uses Port 5000? Port Map Port 5000 in your router to
the machine hosting server code - all incoming requests to port 5000 will
only be sent to the machine with the server.

When an IM user logs in, your server will need to track which users are
online, and associate their internal IP with their username (or some
other unique form of identification) .

On your website, you have a list of all users logged in right? Thus, when
an external user submits your form with the appropriate user they want to
contact, your server would do a look up and match the username to the IM
user's internal IP. Once you have the internal IP, it would be very easy
to send the message directly to the client.

So basically your architecture would look like this:

WAN LAN
Web user <-> Web Page <-> || <-> Server <-> IM

|| Is your router/firewall.

See how the Server acts as a proxy, relaying requests between WAN and
LAN?

So in your code, you'll need to beef up server code so you can redirect
the message to a particular user behind the firewall.

BTW, which IM software are you using?

To sum it up, the key is for your server code to know the internal IP
address of the IM client, so that the message can be directed to a
particular IM user.

--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #7
"scorpion53 061" <sc************ @yahoo.com> wrote in news:#s2r4S5fDH A.3284
@tk2msftngp13.p hx.gbl:
Lucas and all,

Thank you for response.

In the code attached can you tell me how I would:

"LAN server parse and forward the information to the proper client"

This is the server code that the traffic is coming to that is
sending/receiving messages.


Your server code sits on a server that has access to the WAN and LAN
right? Your server uses Port 5000? Port Map Port 5000 in your router to
the machine hosting server code - all incoming requests to port 5000 will
only be sent to the machine with the server.

When an IM user logs in, your server will need to track which users are
online, and associate their internal IP with their username (or some
other unique form of identification) .

On your website, you have a list of all users logged in right? Thus, when
an external user submits your form with the appropriate user they want to
contact, your server would do a look up and match the username to the IM
user's internal IP. Once you have the internal IP, it would be very easy
to send the message directly to the client.

So basically your architecture would look like this:

WAN LAN
Web user <-> Web Page <-> || <-> Server <-> IM

|| Is your router/firewall.

See how the Server acts as a proxy, relaying requests between WAN and
LAN?

So in your code, you'll need to beef up server code so you can redirect
the message to a particular user behind the firewall.

BTW, which IM software are you using?

To sum it up, the key is for your server code to know the internal IP
address of the IM client, so that the message can be directed to a
particular IM user.

--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #8
Your server code sits on a server that has access to the WAN and LAN
right? Your server uses Port 5000? Port Map Port 5000 in your router to
the machine hosting server code - all incoming requests to port 5000 will
only be sent to the machine with the server.

That is exactly what I have currently.

When an IM user logs in, your server will need to track which users are
online, and associate their internal IP with their username (or some
other unique form of identification) .
They currently log in to our customer software which validates through a SQL
Server table called LOGINS. They can then select n in a drop down menu
select say "Plumbing Pricing Questions". Then the client software opens and
establishes a connection to the socket server. From there is where I dont
know how to direct the request to teh local IP at that point.

On your website, you have a list of all users logged in right? Thus, when
an external user submits your form with the appropriate user they want to
contact, your server would do a look up and match the username to the IM
user's internal IP. Once you have the internal IP, it would be very easy
to send the message directly to the client.
Okay so lets say I create another SQL table with these 2 fields for those
the customers are requesting to message with their local IP address so it
would be:

DEPARTMENT
Plumbing Pricing Questions

LOCALIP
155.155.1.30

I somehow have to get the socket server to acknolwedge the incoming request
as being for "Plumbing Pricing Questions" and then direct the message to
that IP.

So in your code, you'll need to beef up server code so you can redirect
the message to a particular user behind the firewall.


Yes exactly........ ...this is where I am stuck.
Nov 20 '05 #9
"scorpion53 061" <sc************ @yahoo.com> wrote in
news:uQ******** ******@TK2MSFTN GP11.phx.gbl:
I somehow have to get the socket server to acknolwedge the incoming
request as being for "Plumbing Pricing Questions" and then direct the
message to that IP.


You might have to beef up your connect code. Upon connection, you make the
client to send a string/ID with which department they are handling. Save
this information somewhere, maybe as a variable in the client object?

I noticed you store a collection of clients in your code you posted
earlier. If you know which client connection is associated with which
department, you could loop through your collection of client objects, find
the proper client, and send the information to that one particular
client???

--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
37010
by: Stefan Mueller | last post by:
I've just installed phpMyAdmin. If I have the line $cfg = 'http://localhost/php/phpmyadmin'; in my config.inc.php I can login to phpMyAdmin without any problems from my local machine. But it's not working from the Internet. To access it from the Internet I have modify the line $cfg = 'http://www.myserver.com/php/phpmyadmin';
4
2831
by: Peter Larsson | last post by:
Hello everybody, I'm developing a system for a company that has production at two different locations. The production is stored in an Access database at each location, and I need to find a way to fetch data from both these databases and present them to the boss (who is at one of the locations). I've built a report generator in Excel (using VBA) that fetches data via ODBC from the database that's located in the same building. However, I...
1
1569
by: GAVO-UK | last post by:
Hi - Using Access 2003 I've been creating applications in access for the past few years and gotten pretty good at it, now I would like to move a bit forward and start using ms access project. I understand the basis concept of it, and know that it is a client / server application that can be used with MSSQL (which I already installed).
0
3282
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others.
1
325
by: scorpion53061 | last post by:
I have been asked to come up with a way to make a instant message program that will allow our outside customers by clicking on a name in a drop down menu can IM who they want. THe application I have works after telling my router to forward all communications from Port 5000 to a local IP address that contains the "Socket Server" program. mobjClient = New TcpClient("zz.zzz.zz.zz", 5000) mobjClient.GetStream()
17
4403
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting there, but is there a way they can find out if that application was put there from a CD or email or created at work? Hint: It's not on a client/server database, just native jet database mdb created on Access 2003 (default 2000)...
17
2558
by: Flic | last post by:
Is this possible? I know about a bit about ODBC and found how to import an ODBC database stored on the computer, however I am after accessing an SQL database stored on a webserver. I'd like to keep it up to date, but that could probably be done with a macro. At the moment I'm just considoring possible options, so just need to know if it can be done, how easy and a rough idea of how.
1
2551
by: Michael | last post by:
Hello, I am trying to develop a database solution for an organisation in Indonesia. This organization has a number of offices and users throughout the country. They all need to maintain their own data, but I also need to create a central database, to store all of the data, and share data between the individual users. The problem is that the internet connections are not reliable, so a online solution isn't possible. I am planning to...
6
2395
by: =?Utf-8?B?SWJyYWhpbS4=?= | last post by:
Hi, I have a client application which Accesses Web Service. but the Web service allows anonymous access to any client request (web/smart client). I want to authenticate every client request by passing username/password to make it more secure. Environment : Web Service/IIS5.0/ASP.NET 2.0 / C#. Kindly help with your suggestions.
0
8454
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8883
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8787
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8645
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7389
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1778
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.