473,394 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

P2P over internet with standard port

Hi all,

I'd like develop a simple application in vb.net able to exchange information over internet by connecting 2 pc or smartphone or 1 pc and 1 smarphone using the standard internet ports always opened by firewall and NAT.
I tryed with sample chat application by experienced fine works only into LAN.

Can anyone helm me? or send some sample code able to work also over internet?

Thanks
May 1 '14 #1
3 2662
Luk3r
300 256MB
You must understand that there is much more to networking than just "default open ports" that allow devices to talk to one another over the internet. Something as simple as a firewall enabled on the end users modem could stop this traffic (and usually will). The reason is because you are trying to send what is seen as a malicious packet to a port that doesn't accept that (in this case, a port like 80 which is used for hypertext transfer protocol). That being said, I have two things to say about this:

1) If this is for you and your friends, awesome. You guys will need to port forward on your modems. This is essentially telling the modem that traffic on XX port is to be sent to your local machine which will interpret the traffic and packet. If this is what you're after, I strongly suggest opening a new question on "How to Port Forward with a Modem", and I will gladly help you.

2) Most people have no need or desire to develop an application that already exists one hundred times over unless they are being malicious or just really want to understand how it works. If it's the latter, the client application on both end points still has to open a port and communicate through a server. Achieving this with P2P on 2 separate networks can be done with the method mentioned in my #1 statement.

Hope this helps and welcome to Bytes.com!
May 1 '14 #2
Hi Luk,

for better understanding there is no malicious intent.
The main task is to share data over internet from a pc/database in my office to my phone or tablet when i'm mobile. Secondary the same communication app can also decome the platform for a real time collaboration where mobile device send data to pc that store into the database.
I'll thank who can provide some code to base the platform that can work on standard port usually used for HTP traffis like 80 or similar, solving the trickly IP addressing (maybe IPv6 can be used).

Thanks
May 1 '14 #3
Luk3r
300 256MB
Here's a great write-up on creating a P2P app for local communications only.

http://www.dreamincode.net/forums/to...p-connections/

As I stated before, networking doesn't allow P2P over the internet without the use of an agent that opens a TCP/IP port (not HTTP) nor without the use of a server to actually relay the communication between the two (since you are on a private LAN). There has to be some way for the "peers" to talk to one another outside of a private network. Those methods are via port forwarding or via a server.
May 1 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Figmo | last post by:
I am trying to connect to MySQL running on a port other than 3306. Port 8123 in my case. I have tried this: MYSQL_CONNECT("server.domain.com:8123","user","password") And also tried adding...
1
by: B or T | last post by:
How do you dynamically allocate a port number (assured that it is not already in use), and advertise it (by name or ID)? Every book I come across seems to hard code/configure a specific port...
0
by: Dan | last post by:
I am running two database instances of mysql (one on a nonstandard port). After granting users permissions I find that I can access mysql from other machines only if I use the standard port. When...
2
by: Greg W. | last post by:
In our setup project, we have the standard web application folder, but we also have 4 web custom folders (virtual directories) that are created at the same level as the web application folder...
2
by: Zean Smith | last post by:
I have a SMTP server running on port 9025, but seems like this doesn't work. SmtpMail.SmtpServer = "192.168.34.15:9025"; SmtpMail.Send( mail ); I couldn't find any properties on SmtpMail...
0
by: Bill W. | last post by:
I have a web service that must connect to another firms web app using https on a non-standard port (5004). My web service works fine connecting to their server on the standard SSL port 443, but as...
2
by: ASP Developer | last post by:
At my new job the asp.net development server port is 2204. So the only way for me to test aspx pages is by typing "localhost:2204/myapp/default.aspx". At my old job this port was not enabled and I...
3
by: Rob Nicholson | last post by:
I wasn't sure where to post this as there doesn't seem to be an obvious group to discuss this. I'm writing my own internet email parser mainly because a) I'm mad and b) I need to understand...
25
by: bmearns | last post by:
Is it possible to specify which port to use as the outbound port on a connection? I have the IP address and port number for the computer I'm trying to connect to (not listening for), but it's...
0
by: basuritta | last post by:
I am trying to add a SQL2000 subscriptor to a SQL2005 publisher and distributor using the Management Studio. I'm using a non-standard port in both ends, but I have set the port for the TCP/IP...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...

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.