P2P Application

How do i create a P2P Application using just Java Sockets

thanks for ur concern
By the Server Application i mean that i don't want to run a Java Server Application which accepts Client Connections.
let me explain the program in details and also specify the problems
1) Login is done with the help of the Username And Password -- working
2) when login a sockets r formed to connect to all the people in the network whose IP and Username is present in the database. Thats the end of datatbase thing. No requirement of that.
3) Now the program sets up a listener.
4) Incase another user logs in the same steps 1) 2) 3) repeat for him/her too.
5) The listener picks up the incoming socket and shows that the user is online.
6) incase a socket breaks or in other words the user logs out then the Socket gives and exception which shows that the user is disconnected.
Don't worry about the number of connections. I have streamlined that. Also you can see that the database is only access once.
----------- Thats the connectivity thing. -----------------------------------
Now the filesharing part1) the user is logged in and the connections are established
2) i use the same thing you mentioned.
Then whats the problem???The problem is that this Program of mine works fine when the users are within a short range(say in a city) but fails outside.
Is there a limit that an IP address can be used only in within some range or is the firewall got to do something with it??????
Also one more question: I am using Apache as the Server Application which executes ASP Files on my PC. I want the program to run HTTPConnection to my PC and run ASP files in Apache. However this is not happening. The users within the city r also not able to connect.
please help me and if you are interested in the code i can send you the code

Similar Messages

  • How to block p2p applications(Bittorent like) with AIP-SSM-10?

    Hi,
    How to block p2p application using AIP-SSM-10 working with ASA5520?AIP is on promiscuous mode.
    Thanks,
    Siva

    There are several signatures that detect p2p, for bit torrent there is 11020.0
    Yahoo triggers: 5539.0, 11200.0, 11212.0, 11217.0 & 11219.0
    etc..
    Some are disabled by default though so please ensure you enable the ones that you need.
    If you want to block these then you will have to use event actions that work in promiscuous setup for example request block connection and tcp reset. Please note that care must be taken when using these event actions.
    For more information about the event actions please refer the link below:
    http://www.cisco.com/univercd/cc/td/doc/product/iaabu/csids/csids12/idmguide/dmevtrul.htm#wp1069467

  • Want to block P2P application using ASA5540

    I want to block P2P application & IM using ASA with IPS built-in. I dont wanna use the ACL for all the ports because most of the P2P application using dynamic ports.

    Aamir,
    You can do this using the application layer inspection on the firewall.
    Please take a look at the configuration guide given below.
    http://www.cisco.com/univercd/cc/td/doc/product/multisec/asa_sw/v_7_2/conf_gd/firewall/inspect.htm#wp1479354
    Rate this post, if it helps.
    Cheers
    Gilbert

  • Resources on creating P2P applications

    Hi everyone! I'm currently a student working on a hobbiest project to gain a better understanding of P2P applications. The idea is to build a P2P search engine where each server/client updates their own database with domain urls by using a spider program that comes with the application. Everytime someone updates their own database, I need a protocol that will update everyone elses database so everyone on the network has the same database. So essentially everyone works together to develop the database as opposed to a centralized server approach. (I hope thats not too confusing).
    **Any resources on how P2P applications work will be a huge help. I have little knowledge and am still a student. Also I am planning on using PHP and mysql for internet application. However any other suggestions would be helpful as well. Thanks to all who respond, I really appreciate it.

    That isn't actually a "topic", but a whole collection of topics. There are too many open questions there to be able to say anything useful.

  • WRT54G Ver 7 with P2P application

    I searched over the Internet for a long time and found that the following facts (problems) on WRT54G Ver 7 with P2P application:
    1. No maximum connection port can be configured from the factory firmware.
    2. Router hang when maximum connection port reached.
    2. No custom firmware like DD-WRT or Tomato can be used in Ver 7.
    3. No available official firmware update yet.
    Conclusion: Nothing can be done except giving up those applications.
    Please correct me if any wrong 
    Message Edited by human_mage on 07-03-2007 06:44 PM
    Message Edited by human_mage on 07-03-2007 07:00 PM

    Nevermind. I found the upgrade from local Linksys website:
    which fixes the above problems.
    (Mod note: Inserted hyperlink to prevent other browser from stretching.)
    Message Edited by OnnagokorO on 07-03-2007 11:14 PM

  • Blocking p2p application traffic and tunneling

    I need help ........
    We have taken two ASA with AIP card, and have configured Active/Active , but user are using p2p and tunneling softwares . how can we block p2p and tunneling traffic ..
    plz anyone reply me..........
    regards

    If you are using Firewall software 12.4(9)T and above, it has integrated policies to block or rate limit p2p application traffic using dynamically updateable application
    definitions for newer p2p applications. KaZaA, Gnutella, BitTorrent, and eDonkey are currently supported.
    You may also see this: http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_tech_note09186a00801e419a.shtml

  • P2P applications

    Hi,
    I have a cisco 2811 router with advanced security IOS (Attached config). I want to block or give the least priority to P2P traffic and give high priority to other applications like http,https,smtp,voice chat, webcam etc since its a military camp and soldiers want to be in touch with their families. I am a CCNA and on my way to CCNP so I have a fair amount of exposures to cisco but I have never tried this.
    How do I go about achieving the above?
    Regards
    Sarfaraz

    Cisco IOS Firewall enhances protection against network worms, HTTP vulnerabilities, and buffer overflows with HTTP Application Inspection (AI). New P2P (Peer to Peer) control capabilities support blocking or rate limiting these protocols for increased network availability and tighter network usage control. Cisco IOS Firewall also introduces session limits for inspected traffic to defend against DoS attacks and enable control of network resource utilization.

  • Blocking P2P applications on WRT300N (V1)

    Hello, I am currently using a WRT300n V1 with firmware version 1.03.6. Having trouble with my room mate downloading a hell lot of stuff using bittorrent. I talked to him but he refuse to stop. I play an online game and i am getting 1000+ ping which makes it impossible to play. I tried a lot of things, including Access restrictions etc. They don't seem to work. I am using the wireless, while he is connected to port 1. I tried lowering the qos on port1 to low. Nothing seems to work. Is it something wrong with the firmware? Any help would be appreciated. Last option is to get a new connection for myself.

    Flat out doesn't work.  It's an all or nothing affair.  Either you block complete internet access between the hours noted or all days, or it's complete access to everything.  The router cannot block specific ports even though it claims it can. 

  • Report a bug, if this problem is not solved, p2p of rtmfp will not be of much use

    Recently, we have several clients on a p2p application, but we use the development version to test, two-way voice and video connection is not successful, several customers of the network environment is as follows:
    First of all, there is no firewall;
    These networks have in common is:
    After an optical access, the subnet with a lot of routers, one by one, and some series, some parallel, some in series and then parallel, and some in parallel then in series, in short, they can be online, and then not the same segment of the computer, p2p connection is not successful, and other computer connection is not successful, and some also use the vpn.
    Analogy: 192.168.5.10 and 192.168.10.10 to connect not, 192.168.5.10 and 192.168.5.11 is ok, is 192.168.5.10 may be outside the network of other computers can connect to, but 192.168.10.10 possible and other computers outside the network connections are not.
    Hope you solve this problem as soon as possible, because rtmfp too expensive, otherwise p2p applications, are generally large companies (schools, government) affordable, and their networks are very complex, they do not take, you will no client .
    My English is not very good, google translation
    I gave you a bug report so long, how did not care for me ah;
    This forum nobody, or you did not test this bug, you do not have time to correct this bug;
    Either we modify not the flash player platform to the bottom of things, I will not give you advice.
    In fact, standing on a technical point of view to think that I have is to use a socket network communication can be OK, network barrier, it is not.
    But would like the user's perspective, I can be normal to the Internet, other p2p communications software, I can, on this thing, impossible, it is this software not work, so that this bug is that we must solve the .
    I am very concerned about this issue every day and came to see nobody replies, I think this problem, I think, to solve this problem, you can proceed in two ways:
    1.dns
    I think it may be able to solve this problem, dynamic dns,
    The idea is: to allow users to connect to the server, the user computer first upd listener (that is, iis services), then farid + domain to form a secondary domain name server dynamically to resolve the domain name to the user's computer, in a timely manner to refresh dns.
    In this way, the user's computer, there is a fixed identity.
    2 gateway
    From users within the LAN to solve this problem, it can only proceed from the gateway.
    For example, to use arp and other means to get to the router, where each segment ip then ip, similar to the route command to specify more than one gateway to the user's computer may be able to solve this problem.
    In theory, these two methods may be feasible.
    We also expect a new solution, I do not know Daoxing not
    Speak before this program, take a look at our test for RTMFP p2p network topology, and the test results (explain, test, do not open the firewall and router are not set up static routing).
    Computer A, computer B - "router A -" server S
    The above NetConnection.Connect.Success 95% NetStream.Connect.Success 5% NetStream.Connect.Fail
    Computer A - "Router A - servers S" - routers B - Computer B
    Above, NetConnection.Connect.Success, NetStream.Connect.Success
    Computer A - "Router A - servers S" - router B - routers C - Computer B
    Above, NetConnection.Connect.Success, 50% NetStream.Connect.Success 50% NetStream.Connect.Fail
    (Computer A - Router A, computer B) - router B - server S
    Above NetConnection.Connect.Success, 100% NetStream.Connect.Fail
    Computer A - "Router A -" router B - server S "- Router C" - router D "- computer B
    Above NetConnection.Connect.Success, 100% NetStream.Connect.Fail
    Computer A - "Router A -" Router B - "Router C -" server S "- Router D" - Router E "- computer B
    Above NetConnection.Connect.Success, 100% NetStream.Connect.Fail
    See the above test results, is not very bad, the key is FMS4.5 sell 450,000 RMB in China, their own software does not do a good job, but also to sell such a high price in China, a man named QQ. The above test environment, all 100% NetConnection.Connect.Success 100% NetStream.Connect.Success, free, QQ has more than 100 million users, QQ companies rely on advertising to make money game.
    Seems to digress, huh, huh.
    The test results, 100% NetConnection.Connect.Success, and NetStream.Connect.Fail the main reason is because the route connected in series or more than two or two and then caused.
    From a technical perspective, as a packet travels through a number of the NAT router default all packets can be out, new packets can not be into the second layer of the router caused.
    Find the reason, we think of a countermeasure to solve this problem from the software itself.
    The last case of the above test environment, for example:
    When computer A and server S NetConnection.Connect.Success computer B with the server the S NetConnection.Connect.Success, computer A to Router D sends an upd packets, not because the router can only broadcast the data packet to computer B, so 100 % NetStream.Connect.Fail.
    The 100% NetConnection.Connect.Success, if we can NetStream.Connect, and NetConnection.Connect connected together, is not can be 100% NetStream.Connect.Success?
    In other words, no matter what circumstances, computer A and computer B can and server S connection is successful, the other way round, that is, the server S and the Computer A or Computer B can connect.
    We can not let the computer A or computer B, pretending to server S (In theory, called NAT, technically speaking, is to modify the source ip of the packet header and source Mac server S, and parity), the router not in the NAT, and other communications.

    Hi Mr. Wog,
    My guess is that once you see an estimate for replacement for hundreds of dollars, those scratches won't look too bad anymore. There are products to cover the outer casing, and some people put stickers on, or even paint (I don't recommend either, but ymmv). Good luck.

  • Setup a new Macbook Pro to minimize application slowdowns over time

    Hi,
    I own a dual G5 2.0 tower which has become (over time) extremely slow...it seems I get the spinning beachball all too often, but have plenty of ram and HD space. Even when opening JPEGS.
    I am buying a macbook pro this w/e and was wondering what the best way to setup the new computer because I want to use it as an HD FCP editing station (on location), but from time to time use applications like aquisition and bittorrent which really seem to bog the system down. I assume not using migration assistant, and re-installing from scratch is a good idea.
    Forgive what may be basic questions, but do I setup a partition initially on the internal drive (and have 2 system folders or something similar?) or will simply setting up different users to access only certain applications help? (I assume not).
    Obviously a concern is the laptop drive is small 160GB 7200RPM but I can guess most of the time I will be running a GRAID for the video editing files, and bigger aperture library (I may have a small select library on the internal drive to show clients and friends "on the go")
    I really appreciate any tips or suggestions and hope that my questions make sense. I realize I want the computer to "do it all" but can't afford it to be strictly an editing station, as I'll be selling the G5 to help pay for the macbook pro!
    Much appreciated,
    Brian Broz
    Vancouver, Canada

    Understand that P2P software operates under the premise that you will have many connections to peers. Each network connection requires memory and CPU cycles to operate properly without timing out the connection or slowing down transfers. In fact, the faster the Internet connection and the more peers connected to your P2P application, the more resource intensive the P2P software will be. You will want to either close the P2P application or tweak it's settings so that it uses minimal bandwidth and resources while you are performing other tasks on your MBP. Try Azureus for torrents as it allows you to tweak settings very nicely.
    Partitioning your hard drive will accomplish nothing in this case. Better to invest in an external FW800 drive for the improving performance while video editing or where you need additional storage.

  • Audio Echo In P2P Apps

    I've been making a few p2p applications in flex that have to do with audio sharing between clients, and I've got a nasty issue with echo that I can't seem to subdue. We are able to minimize the effects by having every end user plug in their headphones, which effectively cuts off the speakers feeding audio back into the microphone, but this is inefficient, and most users are on laptops that have a built in webcam, speakers, and microphone. We've also managed to reduce this (only minimally) by using the echo cancellation feature in the settings (or through actionscript). Is there any way we can get better quality audio like skype has or google talk? It seems like they have some built in echo cancellation features that really manage to squash all of that echo. Am i just missing some trick that would cancel it?
    I've also done quite a bit of work through fms, and we are experiencing the same issues there. I know echo has been a time old problem since the invention of the phone, and alot of research and money has gone into fixing it, it just seems like we don't have it in flash player, and to me this is probably one of the most important features to have if we're going to be using flash clients for communication.

    Adobe Connect Pro provides echo cancellation by extending Flash player. Unless Adobe business model changes, I doubt echo cancellation will be supported in plain Flash player.
    See http://www.lingolesson.com/misc/adobe-s-mysterious-systemproduct-and-connect-pro/

  • Any chance to configure TURN proxy from application?

    Hi,
    Have got a TURN proxy working as a remedy for the symmetric NAT issue.
    However, the way to configure this proxy in the mms.cfg file is rather inconvenient for two reasons:
    It works for all p2p applications running on the same Flash player instance, not just ours.
    The directory where mms.cfg is located is locked for many users.
    I understand that this way of configuring makes sense for the original use case (UDP blocked in organization's firewall), but for symmetric NAT case it is problematic.
    Question: is there a way we could specify the proxy URL from the application through some sort of undocumented API feature?
    - Frans

    900076 wrote:
    Hi All,
    In our environment, we integrated EBS,Liferay (As front end application) with OAM, so now the end url is as below :
    http://mycompany.com:7778/product/
    So any chance to hide or protect the 7778 port (like http://mycompany.com/product/).
    Any idea please,
    Thanks in advance,
    Regards,
    900076.Use port 80 -- Please see these docs for details.
    How To Configure Apache In R11i (9iAS) to Listen on a Restricted Port Such as 80 or 443 [ID 356080.1]
    How To Configure Apache In R12 (10.1.3) To Listen on a Restricted Port Such as 80 or 443 [ID 578001.1]
    Unable to login after Changing the Web Port to 80 [ID 1326966.1]
    Thanks,
    Hussein

  • P2P media streaming

    Hello,
    i am trying to implement a small demo P2P application which involved PC and mobile devices. I wanted to split a media into byte chunks and store them on different peer. If a peer wants to watch a file, it will need to fetch each chuck from different peers one after another.
    What media format (audio and video) J2ME MMAPI supports? For example my nokia N80 supports mp4 and 3gp formats does the MMAPI supports those also?.
    it seems that streaming with RTP/RTSP has been quite tricky if i believed other thread, would it be possible to just send byte to a mobile device and play each chunck separately?
    Can i split any kind of media in byte chunck? Or is there some kind of formatting issues?
    Any other advises which could help me would be welcome. I will post my streaming code when i get it to work.
    thanks a lot
    sebastien

    Hello,
    is there anybody who could give me some hints in my task?
    Is media streaming not possible to a midlet then? If i believe other threads it seems so.
    regards
    sebastien

  • WRT54G v8 dies under heavy p2p

    My new WRT54G v8 has been dying consistently under heavy p2p use. My friend and I often use p2p file sharing and bittorrent clients.
    One of us at a time seem to be able to use it with p2p apps, but once more than one of us start searching/downloading, the router dies.
    After it dies:
    - local network connectivity remains connected for PCs with static IPs
    - DHCP will not release/renew for other machines.
    - internet connectivity dies for all machines though the modem remains connected to the service provider.
    - the web interface for the router becomes inaccessible.
    All machines are wired. We are not using wireless yet Wireless is enabled, but password secured. Nobody outside my home is sharing it.
    We can limit the number of connections for bittorrent, but other p2p apps are unable to limit the number of inbound/outbound connections.
    I find a large number of similar complaints on other forums, and there is no open-source firmware or new linksys firmware update available for the v8 yet.
    Anyone had luck adjusting settings on the V8 to avoid these problems?

    You could setup those computers on P2P for the QoS option on the router. Just simply get the ports of the P2P applications, fill them in on the QoS, then set them to low. That way the router will prioritize normal web applications vs P2P applications.

  • P2P connection drop issue with MAC 10.5 Leopard

    I have P2P application which connects to FMS Server hosting with influxis.com using RTMFP protocol . The application works just fine with all other OS except  older MAC 10.5 Leopard with flash player 10.3 installed.
    The problem is that p2p chat, audio and video does not transmit and connection is dropped after around 50 seconds. Its same with different Computers with above mentioned OS and configuration.

    It happening only on MAC 10.5 with flash player 10.3 but happens never on newer MAC or Windows PC with any browser or flash player . So it seems a old MAC specific bug.
    The same issue occurs with the (Cirrus sample application ) by adobe using rtmfp at this link
    http://labs.adobe.com/technologies/cirrus/samples/#resources

Maybe you are looking for