Connecting to server residing inside wireless network

I'm trying to connect from a program on an outside machine to a ServerSocket listening inside a wireless network. I'm running into a snag due to the way the system works. It runs fine on other setups, but I don't understand the issues involved with getting around the proxy (I'm not even sure what the right terminology is here).
Here's how it (should) work:
Program A - the one on the wireless network - creates a server open on a specified port.
Program A contacts Program B, which is already listening on an established port.
Program B records A's server contact information.
Programs C, D, etc. contact B to retrieve A's server contact information, and proceed to communicate directly C to A.
This was working fine, until we threw the wireless network into the mix. Our 1st hurdle was the DHCP, and we managed to obtain the actual IP address of the network as opposed to the internally-supplied IP used by the machine inside running Program A.
The problem we're hitting now is that I've got this server running on port X inside the network, but once it connects to the outside world it's being channeled through a different port. Okay, I can send a message back to the router of the wireless network, but I don't understand how to redirect it back to the port that the server is listening on in Program A.
So my question is: how do I connect to a socket inside a network such as this? Or is this a network configuration issue?

"Wireless" isn't your problem. DHCP and firewall/router are.
The machines "inside" this kind of DHCP setup don't exist from the outside - all the outside can see is the external IP addr of the firewall. You want/need a well-known port on your firewall to map (always) to the well-known port on the server machine that's inside your network. Getting that to happen is heavily dependent on the kind of software your firewall/router is running.
This question doesn't have anything to do with Java per se - you'd be having exactly the same problem no matter what language you were writing in. I think you'll have more luck posting the question to a forum for whatever hardware you're using for your router.
Good luck,
Grant

Similar Messages

  • Connecting HP Laserjet P1102W to wireless network (then getting drivers!)

    Hi,
    My macbook pro and HP LASERJET P1102W seemed to be communicating just fine when I had snow leapard.  Post update to Mountain Lion, problems.
    I have gotten the printer to work when connected via USB, however not consistently.  (Often it cannot recognize when paper tray is filled, cannot do two sided printing and has other issues perhaps connected to the fact that software is missing?) 
    I have read the documentation on HP site, noting that the only way to install drivers is via a network connecton and airprint which requires a network connection.
    Not sure this is the right place to ask this, but I will for now:
    How do I connect my printer to my network, which is a new home network as I just changed from DSL to Cable? 
    Note:  I had not previously ever connected my printer to my wireless network and set it up to work with Airprint, though that is one of the reasons I bought it.  
    Once I do connect the printer to my wireless network, perhaps then I can try to follow the steps on the HP site   http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03425022&cc=us&dlc=en&lc=en &os=4142&product=4110396&sw_lang=
    If anyone has experience with the above, I would love to hear it!
    Final question:  Is plugging the printer into the back of the new cable modem via ethernet or USB perhaps a way to put it on the wireless network?  Not a convenient location, but if only alternative, I would try it.
    THANKS!
    Ani

    Dear Happy-to-Help,
    I appreciate you logging in to help. I shall give this a shot in the next couple of days when I have more time and let you know how it goes.
    I have been quite frustrated by the fact that HP says if the HP Laserjet P1102W has worked fine with Snow Leapord and one upgrades to Mountain Lion, all the drivers will be automatically upgraded/updated (or whatever the term).  That has not been the case at all.   It took quite a bit to even get my computer and printer to talk to one another via a USB connection—with none of the functions of the printer (as noted above) working properly to this day.
    I hope your suggestion works.  Will be back in touch to let you know. 
    Ani

  • Problem connecting MBP to established Linksys wireless network

    just got MBP 2.16 (my first mac!). Having trouble connecting to my established linksys wireless network. I have the BEFW11S4 (V.2) etherfast wireless access point + cable router with 4 port switch. Currently have 128 encryption enabled. The linksys router is broadcasting its ID (I can see "linksys" on my mac) but it seems to not accept the password. I tried entering the 26 WEP key, the passphrase, the WEP key in quotes, the WEP after a $ sign... all to no avail. please APPLE community, help out a mac noobie before i have to turn back to Bill Gates....
    Dell Dimension 8200, MBP 2.16   Mac OS X (10.4.6)   2 GB SDRAM

    To find the IP address or the status, go to system Preferences then network. It will show you the status of any internet connections. You should see one for Airport, it will either show a green light and say 'Airport is connected to the internet' (or something like that) or a red light and say 'Airport is is active but not connected' (something like that). If you double click on Airport or click 'Configure' you will see tabs, click on TCP/IP and it will show all of your details including your IP address.
    As for the other, it always refers to wireless networks as 'Airport' and that response is the standard response from a Mac.
    the password should be typed in the hex section, not sure about the $ sign. I've never had to do that before. But if you can't connect even with no encription then I would think it is another problem. I would turn off the encription until you can at least get connected and then you can worry about the security afterwards.

  • I can't make my iphone 4 forget the hpsetup network which keeps showing up at work. My phone won't automatically connect to my company's wireless network.

    I can't make my iphone 4 forget the hpsetup network which keeps showing up at work. My phone won't automatically connect to my company's wireless network. I have to reselect it everytime I come to work.

    Settings/General/Reset - Reset network settings will "forget" all WiFi networks so you can select them again.
    If the problem with your company network is not solved by doing this, are there multiple sites that have the same network name for the company network? Or is it the default network name for the router type (e.g., DLINK, LINKSYS, etc)? If so, this is what is causing the problem and there is no solution other than convincing IT that it is a bad idea to have duplicate network names.

  • Graphite Connects to Someone Else's Wireless Network

    When I startup my eMac (10.4.8) I sometimes cannot connect to the internet via Airport. I discover, upon launching Internet Connect, that I am connected, but not on our wireless network. Instead, Airport shows me connected on something called "linksys" (which I assume is a neighbor's wireless network), and the signal is very weak. I can switch to our network via Internet Connect & all is well, but it's a hassle having to go through this every time. It used to be that I'd immediately be connected to our own wireless network & Airport upon startup. Help! How can I "teach" my Airport to always connect via OUR network & not "linksys"???

    Try each of the following, in order, until resolved:
    1. Run the Disk Utility to repair Disk Permissions.
    2a. Delete Preferred Network(s)
    - System Preferences > Network > AirPort > Configure
    - In the "By default, join:" pull-down menu, select "Preferred networks"
    - Delete the network(s) you regularly use from the list
    2b. Delete AirPort Keychain Entries
    - Launch the "Keychain Access" application located in Applications/Utilties.
    - Click on the "Kind" filter at the top, and look for any "AirPort network password" entries...and delete them.
    - Restart, or log out then back in.
    2c. Add Preferred Network(s)
    - System Preferences > Network > AirPort > Configure
    - In the "By default, join:" pull-down menu, select "Preferred networks"
    - Add the preferred network(s) using the "+" button.
    - Restart or log out then back in.
    3. Create a New User Account
    - Create a new user account.
    -- System Preferences > Accounts
    -- Click "+" to add a new account
    - Log off, then log back on with the new user account.
    - Try connecting with the AirPort.

  • Connecting HP Officejet 6100 to wireless network with OSX 10.9.5

    Running OSX 10.9.5.
    I'm trying to connect HP Officejet 6100 to wireless network without HP software since the software claims it is not compatable with my OS. 
    The printer works fine when connected via USB.

    Hi @dj2thew,
    Thank you for visiting the HP Support Forums! I see you are trying to add your HP Officejet 6100 to your Mac running the Mavericks 10.9.5 Operating system.
    Because you are using the Mavericks OS X you must install the printer using the Apple Updates. Please click on the link below, this document explains how to install the print driver on a Mac for a USB or a network connection. The OS X v10.9 Mavericks driver for your printer is available through Apple Software Update (ASU). Additionally, you can perform basic print jobs using AirPrint without installing a driver.
    OS X v10.9 Mavericks: Installing and Using the Printer on a Mac
    Once you have installed the OJ 6100, you may notice the features you once had are limited or there are workarounds, for scanning with or without HP Software see below:
    How to Scan: OS X v10.9
    I hope this helps!
    Thanks again,
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • I can VPN into my work but can't connect to any devices inside that network

    I authenticate fine and get an address but I cant connect to any devices inside my work.  I am connecting to Cisco Lan controllers, routers, and switches.
    I thought it was a routing problem but I can connect with my iphone and open the webpage for my lan controllers and I even tested it on a pc laptop with Windows XP and it works fine.  I have a 2012 Macbook pro.  I prefer to use my Macbook all the time.  I haven't used my Windows laptop until today since I got the Mac.  Do you think I have the V-Word?

    Please read this whole message before doing anything. This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it. The purpose of this test is to determine whether your problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows: 
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click  Log in.
     *Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode. Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Configuring a printer through a wired printer server over a wireless network.

    Hi,  I have a home wireless networks setup via a netgear wireless router. I have an old HP Laserjet 4 that is connected via a parallel printer port to a Netgear PS110 printer server. The printer server is connected via Ethernet to the wireless router. How do I configure my Macbook Pro (Mac OS X 10.7.5) to talk via the wireless router to the printer server, and to configure a driver that will work with the old HP. On all of my PCs (Windows 7/XP/Vista) I can see the device on the network and assign a printer driver to it. I am new to the Macbook world and would appreciate some guidance. How do I get the Mac to recognize the server on the network? How do I specify an HP specific driver for the printer. If I need to install some third party driver for this older printer, how do I do that?

    Which os do you have?
    Check Apple's Knowledge Base for Printer Troubleshooting solutions and suggestions for your particular os.

  • Connecting to Windows Computer via wireless network (Password issue)

    I have a wireless network set up at my house, and we all can see each other's shared computers, and the windows machines can connect to each other without a problem.. but my Mac cannot connect to them, but they can connect to me. When I goto "Connect to Server" it asks me for a username and password for the windows machine.. I don't know what to do from here!!! Please help, thanks a bunch

    In your Sharing panel, did you go into "Options" and check the box for sharing via SMB?
    Then from XP you should be able to reach the Mac via //(ip# or DNS name)/
    and you should see the available shares.

  • Problem connecting MBP to established Linksys wireless network (Part 2)

    Thanks to all who followed part 1 thread. I have been trying to wirelessly connect my new MBP 2.16 to my established linksys BEFWS11S4 network. I gave up on 128 encryption for now, MBP couldn't take it.
    by playing with the setting and manual config I can get the MBP to connect to the linksys network, (I even see the mac on my Win XP's DHCP master table). In the network utilities I get a green status light. when i run diagnostics i get a green airport, airport settings, network settings and ISP. STill red are "internet" and "server". no conncetion with safari...
    I know the MBP works becuase i was able to connect to my neigbors wireless network and will work when I hard wire it through built-in ethernet.
    Anyone know why the airport wouldn't work here? any thoughts appreciated I have spent way to many hours on this......
    Dell Dimension 8200    
    Dell Dimension 8200    

    OK so your router is issuing IP addresses. However, I would say there is definately something wrong with your router's config. Maybe your DHCP server on your router is switched off? Anyway by adding your own IP address that is half the battle, as you need more than an IP address to connect to the internet, that's why you can see it in the list but cannot connect to the net. When a computer is set to DHCP it sends out a message to any DHCP servers requesting an IP address, if it gets no response in a set time, it issues itself an address, like yours is doing, the address will probably look like this: 169.254.14.192, it's called an APIPA address (Automatic Private IP Addressing)
    You see a router uses a NAT (network address translation) so that from the internet all the machines connected to your router would show the same IP address which would be the one supplied by your ISP. For this to work, each machine on your network needs to have a default gateway, which is the IP address that your outbound traffic goes to. If your router is not issuing an IP address then it's probable that it's not issuing this data also, so you can add it yourself.
    On your windows machine, go to a command prompt Start>Run type cmd and press enter, then type ipconfig /all press enter, it will show you the IP address of your PC, your subnet mask and your default gateway. I am going to assume that your IP address is in the 192 range as most Linksys are. So let's say your IP address of your router is 192.168.1.1 (on the new ones they tend to go with 192.168.1.15) so whichever yours is, that is your default gateway, as that's the address of your router. So your PC may have 192.168.1.100 as it's IP address.
    On your Mac go to the System preferences>Network and the TCP/IP tab and select manual setup in Airport. Type in an IP address like 192.168.1.101 (or one up from your PCs IP address, then type in the subnet mask 255.255.255.0 if that is the same as your PC and then where it says Router (this is the default gateway address on a Mac), type in the default gateway here. Select apply and that should now connect to the internet.
    I would only use this until you can resolve your Router's issue. Maybe you can call them back and tell them your router is not issing IP addresses. Or get a friend to try his laptop and see if he gets one. If not then you know it's your router. I would bet money that it's your router, that's why you can connect to your neighbours but not yours. Also remember if you keep the manual setup if you go travelling, remember to change it back to DHCP or you wont be able to pick up any hotspots. You can save a TCP/IP setup on a Mac so you could save the setup and name it and when you go travelling change to default, or auto.
    Let me know how you get on.
    P/book Aluminium 1.25ghz   Mac OS X (10.4.6)   (MBP 2.16 120GB 1GB Wk23 on order!)

  • IOS 5 can't connect to WPA/WPA2 Enterprise Wireless Network

    After upgrading multiple iPhone 4 (CDMA versions) to IOS 5.0, I have not been able to get them to connect to our WPA/WPA2 Enterprise wirless network.  We use a Cisco Wireless LAN Controller.  The wireless network is capable of doing WPA or WPA2 Enterprise with PEAP.  These phones all connected to this network fine before the upgrade.
    When connecteding to the network, it prompts me for the username and password and when I tap join it sits for about 10-15 seconds then says "Unable to join the network" with a Dismiss button.
    It connects to non-Enterprise networks just fine.  I have tested it on WPA Personal and WPA2 Personal networks and it has worked on several without issue.
    I have tried "forget this network" with no success.
    Is anyone else having this problem?  I know of at least three Verizon iPhone 4's that have this exact same problem.  I haven't seen one working with this configuration yet.

    I have the same problem:
    Cisco WLC's -> WPA2 Enterprise AES + EAP-PEAP 802.1x with CCKM
    Pre 5.0 - all worked fine
    Post 5.0 - it tries to connect and after few moments i get error - couldn't connect.
    Info from controller:
    10/17/2011 12:16:37 CEST           INFO           172.16.16.X           Sending EAP request to client from radius server. 6.f. ..l
    10/17/2011 12:16:38 CEST           ERROR           172.16.16.X           Retransmitting EAP-ID request to client,retransmission timer expired. 5.y. ..l
    10/17/2011 12:16:39 CEST           ERROR           172.16.16.X           Retransmitting EAP-ID request to client,retransmission timer expired. 5.y. ..l
    10/17/2011 12:16:40 CEST           ERROR           172.16.16.X           Authentication failed for client as EAP ID request from AP reached maxmium retransmissions. 5.yp ..l
    10/17/2011 12:16:40 CEST           ERROR           172.16.16.X           De-authentication sent to client. 5.oP ..l
    10/17/2011 12:16:40 CEST           ERROR           172.16.16.X           5.yp ..l
    10/17/2011 12:16:40 CEST           ERROR           172.16.16.X           EAPOL-key is invalid, scheduling client for deletion. 5.yp ..l
    On the Radius server i don't see any activity regarding this device.
    I had this network configured on my iPhone - after upgrade and restore it remembered it. Every time i was in vicinity of my Enterprise WLAN it tried to connect - resulting int express battery drain - 6-7 hrs and battery was empty from 100%

  • Windows server 2003 R2 wireless network policy

    hello
    I have
    the following
    network topology :
    an ms windows
    active
    directory
    domain controller running
    server
    2003 R2
    Our
    company wants
    to
    move to
    wireless technology
    ( auth via   radius server
    built in
    windows and
    EAP
    , WPA
    - AES
    The building
    has four
    floors, on each
    floor
    I want to
    put an
    acess point
    with
    a unique
    ssid .(users must can connect only to the access point located on their floor).
    How  can
    i push a
    wireless network policy for each
    access point
    in
    active directory so users will connect only to the access point desginated by me?(i did set up a wireless network policy on the default domain policy but all users have access only to one access
    point)
    Our
    company structue
    is divided into multiple OU`s in
    the
    active directory like Markting , HR etc. it`s very important to keep the ou`s structure.

    Hi,
    Plese check the block policy inheritance for another policies on the OU's. And check the guide :
    http://technet.microsoft.com/en-us/library/cc784620(v=ws.10).aspx
    And also for the access point : http://community.arubanetworks.com/t5/Command-of-the-Day/COTD-How-to-create-a-Wireless-Group-Policy-on-Windows-2008/td-p/11768
    Alper YAZGAN *

  • Delayed connection to internet after joining wireless network

    This is a strange one.
    I have an Extreme-N (Gigabit) connected to my DSL modem and distributing IP addresses via DHCP, and an earlier Extreme-N (100base-T) conncted via WDS. Using 5Ghz wide channels, WPA encryption. Firmware 7.2.1.
    Until the pasty few days, my iMac C2D, MacBook, and MacBook Pro could connect instantly to the internet.
    Now, any system will connect immediately to my wireless network, obtain a valid IP address, and can talk to my printer, AirDisk or other machines on the local network, but there is a delay of several (sometimes more than 5) minutes before they are connected to the internet.
    Resetting of all network equipment had no effect.
    This is a real head-scratcher. Would appreciated pointers.
    cheers...
    ......curt

    On first and second reading, it sounds to me like a DNS issue - and probably an external one at that. The devices all receive an IP address and the address of the gateway/router. The Router (the AEn) in question is able to query the router for addresses of other devices on the subnet. When any devices queries for a domain or IP outside the subnet, your router is supposed to pass on the request to the DNS server(s) it gets from the ISP through the DSL. So without further info, it's hard to tell whether fault lies with your AEn or with the DSL modem or further down the line.
    Here's a list of things to try in order:
    1. Remove the older model AEn base from the network completely, power it down. It is possible the WDS is screwing things up. Test as before.
    2. If no change, then I'd save the configuration files from each of your units, load them up on the other, and effectively swap their duties, the older one connected to the DSL, the newer AEn connected via WDS. Also, set IPv6 on both units to "Link-Local"
    3. If no change, I'd put it back the way you want it and test it just to be sure that everything works the same, then I'd put some different DNS servers into the main AEn's config - the ones from openDNS (http://opendns.org) are good to try. This effectively cuts your ISP's DNS servers out of the picture. So if everything now works immediately, it's pretty good evidence that the ISP needs to fix something.
    4. If STILL no change, I'd do a hard reset on your main Airport, then tinker with the settings, such as force it to WPA instead of WPA2 (hold down option while selecting the wireless security mode) and perhaps force 802.11g & b (no 'n', also by holding down option while choosing Radio mode). Also change the multicast rate. Tinker to your heart's content, you can always load back up your saved config file. Your object here is to remove the AE from suspicion.
    You'll also be asked if you hooked up a single workstation to the DSL connection if you call your ISP for support, so you might as well try that too.
    Good luck!

  • Can't Connect OfficeJet 7410 to new wireless network - used to work on old one

    Hi, I'm on a Mac OS.  I just upgraded my wireless network to use an airport extreme.  I have a verizon fios router - same as I had when it used to connect.  The only change was adding the airport extreme.  Now, the officejet 7410 all-in-one will not connect to the wireless connect.  It SEES the name of the network, and asks me for a WEP Key, which it didn't used to do.  It used to ask me for the network password.  I found the WEP key on the router and it acts like it is trying to connect but takes a long time and then gives me an error.  One time it never gave me an error and seemed like it had worked, but was not connected.  It just gave up. 
    My configuration page indicates offline with no active connection and wireless status disconnected.  
    I restarted everything with no change.  I don't know why it would be asking me for a WEP key this time and then not accept it but that was the first indication that something was different when it didn't ask me for the network password.
    Also, as a separate issue but related.  In trying to fix this, I deleted my drivers to reinstall and see if I started over that it would work.  That created another problem in that now it seems that HP no longer supports a driver for this printer.  Is that even possible?  It's not that old.  It says it does not exist on the software update.  Please help!

    Hi YSJA,
    I'm sorry to hear you've had problems accessing your Officejet 7410 since adding the AirPort Extreme to your home network.
    I have included a link to HP's Wireless Printing Center troubleshooting section. It has section, "Was anything changed or updated on your router recently?" that has detailed steps to help you resolve the issue.
    Wireless Printing Center Troubleshooting
    http://www.hp.com/global/us/en/wireless/troubleshooting.html
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Connecting MacBook to printer via wireless network

    I have a wireless network via cable modem with some PCs attached and a printer but am having trouble connecting my new MacBook to the HP LaserJet 2100 printer via wireless. I do not have airport express and not sure I need it to have the MacBook print to this printer. Please advise.

    Hi topgunner,
    How is the printer connected? Are you trying to share it via a PC through wireless? Or is it connected directly to a router/hub that is enabled for printer sharing?

Maybe you are looking for

  • Recon Account defaulted in customer master

    HI When we are trying to create customer master in XD01/FD01, the reconciliation account is automatically showing 155230, and when we tried to change to our reconciliation account even after saving customer master, it is again going default to 155230

  • R3 4.7 upgrade to ECC 60 EHP5 spam error Program terminated jobRDDMNTAB

    We're run upgrade procedure for development source system R/3 4.7 set 2.00 to ECC 6.0 EHP 5 on HP-UX 11.31, Oracle 9.2.0.8: Latest version of SAPEXEDB-378 and SAPEXE-378 levels patch are installed. -R3trans version 6.13 (release 640 - 19.01.11) -tp v

  • Special field in FBL3N

    Hello, Would You help me the next problem: I've added new field to GL line item report, which is vendor number (this is not offsetting account number). Is it possible to add description from vendor master data? BR, Natalija

  • Value must be of type integer (between -2147483648 and 2147483647)

    Hi, Does anyone knows how to overcome this issue? NW7.01.05 My Table in the View uses as dataSource a node called "DumpReport" - This has been created using a Structure type Zwd_S_Dumpage_Data. The structure has some elements, and my issue is in the

  • Code modifications at runtime in C#

    I am aware of the edit-and-continue feature in vs2013 but I was wondering why there is no possibility to do hot swapping like it is possible in Java using Eclipse. In Eclipse, you can juste change the code without stopping the application, save it an