Connection to the remote computer by socket

the computer which i want to access from my home is the computer of mine in the company. and i want to do this with socket programming.i will execute a java program listening the port 5101 for example at work.
my intranet IP is 10.10.20.84 (i think this is private IP)
but if i visit;
http://www.ilanonurajans.com/ip_ogren.asp
the IP is different from this (i think this is the public IP)
so how can i create the socket?
Socket clientSocket=new Socket("***.***.***.***",5101); //public one
or
Socket clientSocket=new Socket("10.10.20.84",5101); //private one
thanx

Let me see if i understand you correctly you want to access your work pc from your home pc right? So the serverSocket will be on your work pc.
IF this is the case it won't be easy to do so. This is because you are behind something known as a NAT (network adress translation). Since you have a different public and private ip you can't reach your pc from outside of the internal network. The only way to accieve this is if you have access to the router that manages your nat at work and make it foreward all incomming connections on your port to your pc. If you do that you need to do
Socket clientSocket=new Socket("***.***.***.***",5101); //public one
If you can't configure the router there is no way to do what you want.
HTH
Lima

Similar Messages

  • Windows VPN: Error 720 - A connection to the remote computer could not be established

    Dear all
    I have a windows7 Laptop 64bit Dell 1340.
    I was working with a UMTS card, was connected with a VPN to a windows 2003 server over PPTP and experienced a bluescreen. After this, I have the following errors when connecting to the VPN:
    "Registering your computer on the network... Error 720: A connection to the remote computer could not be established. You might need to change the network settings for this connection"
    and in the event view I receive the following:
    EventID: 1, Source RasSstp
    CoId={A3478DFD-FFA4-4E8F-9DA3-CE829BDA777B}:The initial Secure Socket Tunneling Protocol request could not be successfully sent to the server. This can be due to network connectivity issues or certificate (trust) issues. The detailed error message is provided below. Correct the problem and try again.
    I tried to use the Rarepair.exe tool but it looks to work only on windows xp. I deleted the IP and TCP settings without any luck.
    I run a registry cleaner as well with out any luck.
    Your help will be greatly appreciated!
    Marc

    Hi,
    Since it worked previously, a quick solution is to run System Restore and get back to the previous status when the issue didn’t occur.
    If system restore doesn’t help, please also try the following:
    1.    Check if you can establish the VPN via other connections except the connection through the UMTS card.
    2.    Reset the PPTP and L2TP WAN miniport with running the following commands one by one in an elevated command prompt:
    Netcfg -u MS_L2TP
    Netcfg -u MS_PPTP
    Netcfg -l %windir%\inf\netrast.inf -c p -i MS_PPTP
    Netcfg -l %windir%\inf\netrast.inf -c p -i MS_L2TP
    Then reboot the computer and see how it works.
    Meanwhile, I would like to share the following with you for your reference:
    Troubleshooting common VPN related errors
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • BB Torch - bluetooth tethering for laptop internet use: "Error 720: A connection to the remote computer could not be establishe​d

    Trying to set up Blackberry Torch for laptop tethering...bluetooth. I have connection/drivers/etc. but keep getting error message: "Error 720: A connection to the remote computer could not be established. You might need to change the network settings for this connection." Where and what do I chancge setting to so this will work?
     I have synched my phone and laptop wirelessly across other internet connection....just cant get this above to work. Anybody know how to fix this? Thanks!

    Hi,
    Since it worked previously, a quick solution is to run System Restore and get back to the previous status when the issue didn’t occur.
    If system restore doesn’t help, please also try the following:
    1.    Check if you can establish the VPN via other connections except the connection through the UMTS card.
    2.    Reset the PPTP and L2TP WAN miniport with running the following commands one by one in an elevated command prompt:
    Netcfg -u MS_L2TP
    Netcfg -u MS_PPTP
    Netcfg -l %windir%\inf\netrast.inf -c p -i MS_PPTP
    Netcfg -l %windir%\inf\netrast.inf -c p -i MS_L2TP
    Then reboot the computer and see how it works.
    Meanwhile, I would like to share the following with you for your reference:
    Troubleshooting common VPN related errors
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • Error 720: A connection to the remote computer could not be established.

    So I got an aircard Novatel P720. It was working fine for months. Then I installed a VPN connection. Now, I get this error.
    Error 720: A connection to the remote computer could not be established.
    Most of of what I found recommends uninstalling the WAN Miniport (IP), it seems that  I have to go thru so many hoops to get this fixed. Wondering if I would be better off rebuilding my machine from scratch again. Is there an patch or another way to get me going.
    I think this is an old issue. Lots of comments on this thru Google. I am hoping I can get a definative answer from Lenovo's itself!

    josezald wrote:
    So I got an aircard Novatel P720. It was working fine for months. Then I installed a VPN connection. Now, I get this error.
    Error 720: A connection to the remote computer could not be established.
    Most of of what I found recommends uninstalling the WAN Miniport (IP), it seems that  I have to go thru so many hoops to get this fixed. Wondering if I would be better off rebuilding my machine from scratch again. Is there an patch or another way to get me going.
    I think this is an old issue. Lots of comments on this thru Google. I am hoping I can get a definative answer from Lenovo's itself!
    Well, seeing since your having an Issue with a non Lenovo product. I dont think your going to get an official answer from Lenovo. You may get suggestions however. 
    Ignorance is no excuse!

  • Error 720 a connection to the remote computer could not be established win 8

    hello, i have this error on my windose 8, error 720 a connection to the remote computer could not be established ,for VPN connection,  how can i fix it ? 

    Hi,
    For this issue,I would like to know your VPN protocol.
    Did you use Windows in-built VPN client?
    I think the issue is related to your security software or Firewall.
    Let’s temporarily disable other security software and Windows firewall to check if that helps.
    If it doesn't work, please uninstall the third-party security software or firewall to test it.
    Also, please check your event view to see if there are some related error in it.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Client could not establish a connection to the remote computer

    Sir we are using Windows 2008 Server standard licence edition and using Microsoft Cal open licence  (Total 25). Our system are working from smoothly from 1 years. But from one week we have facing client could not establish a connection to the remote
    computer.
    Sir I am talking from Integral Bank, Jaipur Sir please solve our problem.
    With warm regards,
    Hariom
    M-09875156100
    mail : [email protected]

    Sir we are using Windows 2008 Server standard licence edition and using Microsoft Cal open licence  (Total 25). Our system are working from smoothly from 1 years. But from one week we have facing client could not establish a connection to the remote
    computer.
    Sir I am talking from Integral Bank, Jaipur Sir please solve our problem.
    With warm regards,
    Hariom
    M-09875156100
    mail : [email protected]

  • Hyper-V 2012 R2. RemoteFx. "The remote session was disconnected because there were network problems during the licensing protocol. Please try connecting to the remote computer again."

    After a Installation from Windows 8.1/windows 7 everything works fine. For example  Install updates and Software. If I connect the first time a remotefx card i can use RDP as well. But if i restart the host I get the mentioned error. What can I do. These
    Hosts are not in a domain configuration. I tried it too but there was  no difference. I didn't discovered any errors in the eventlog, too. Only an actviex error. But same errors occurs with a succsefull rdp session.
    Also strange is if i start the vm without a remotefx card it works fine again. Only session with a Remotefx card aren't possible anymore.
    Is there a bug or something. I tried it many times with the same error.
    Maybe someone can help me. 
    kind regards  
    Tobi

    Hi Tobi,
    Thank you for posting in Windows Server Forum.
    For a workaround, please try to perform the two steps.
    1. Do NOT enable RDP 8 on the Windows 7 SP1 VM.  You should install RDP 8 and update the ICs though.
    2. Change the connection setting on the client from "Automatically detect" to "LAN"
    Please check again below thread for information.
    a. "The remote session was disconnected
    because there were network problems during the licensing protocol" after enabling RemoteFX Windows 8 VM
    (Please recheck answer by “dgeddes”)
    b. "The remote session
    was disconnected because there were network problems during the licensing protocol" After Installing RemoteFX
    Hope it helps!
    Thanks,
    Dharmesh

  • VPN ERROR 619 :: A connection to the remote computer could not be established, so the port used for this connection was closed

    I have been searching endlessly for this issue. Every time I try to connect to a VPN connection I get the error above. Thank you for any relevant input concerning this matter. My NIC is Qualcomm Atheros and I'm in Win8.1 x64.

    everything normal before?
    is there any changes before this issue happen?
    turn off your antivirus and firewall, update the latest VPN client software, if still not working go to security settings and change the VPN type automatic to PPTP. And also change data encryption configuration to Optional and select CHAP & MS-CHAP v2.
    If still not working try with other internet connection and try to contact your VPN provider

  • There is a problem with this connection's security certificate The remote computer cannot be authenticated due to problems with its security certificate. Security certificate problems might indicate an attempt to fool you or intercept any data you send

    Hi,
    I have this Windows 2008 R2 on which I installed remoteapp some years ago.
    Now the certificate expired and I get the message
    "There is a problem with this connection's security certificate
    The remote computer cannot be authenticated due to problems with its security certificate.
    Security certificate problems might indicate an attempt to fool you or intercept any data you send to the remote computer."
    How should I renew the certificate? I already went to certification store and tried to renew certificate with same key but then it says "the request contains nor certificate template information".
    Please advise.
    J.
    J.
    Jan Hoedt

    Does the computer account have Enroll permission to the certificate template?
    From the Server running your CA, run mmc, click File then Add/Remove Snap-in...
    Add Certificate Templates and click OK.
    Find the certificate template, then right click and select properties.  On my CA its call ed RemoteDesktopComputers but might be called something different depending on what what template your certificate is based on.
    On the security tab, click Oblect types, check Computers then OK. Enter the Computername and click OK.  Then give your computer account Enroll permisssion.
    HTH,
    JB

  • How to open multi-windows to operate a remote compute using socket

    hi, please help me.
    I want to develop a program, it can open multi-windows to operate the remote comput at one time just like NetTerm. It use socket to setup connection with remote computer.
    Now I am using a Thread class to setup socket connection with computer, and use Thread's static varible to control all kinds of action of socket.But it can work only when openning one window,because all the thread instances share the same static variable.
    How to do it? Not using Thread? Then the frame will be frozen.
    All adivse are welcomed.Thank you.

    Maybe I don't say it clearly.The program need to show the output of the socket in the JTextArea and transfer the user input to the input of the socket to control the remote computer.

  • SSRS 2012 with SharePoint 2010: Unable to connect to the remote server

    We had originally installed SSRS 2012 with SP 2010 and I did not like how the installation was configured, so we uninstalled everything and removed the SSRS server from the SharePoint farm and uninstalled all the SQL bits (SSRS was deployed to web tier in
    sharepoint mode).
    I've since added a new application server to host the SSRS SharePoint Mode and Installed the reporting services add-in on the WFE.   For reference, I have 1 WFE and 2 App Servers.  the WFE has the Reporting Service Add-in and both App Servers have
    the SharePoint mode of SSRS installed as described here: https://msdn.microsoft.com/en-us/library/hh479774(v=sql.110).aspx
    I've also installed the Service Application and all seems to work well up until I make an attempt to create a report or data source on the WFE.
    It looks like somewhere, the WFE is still looking to connect to the original SSRS machine we installed.  I've gone through registry, config files and the SharePoint config database to see if I can see where the reference value is.  Still can't
    find it anywhere.  None of the Reporting commandlets are helping.
    Technically what is occurring;
    Add Reporting service content types and create a New Reporting Data Source through UI
    ULS Logs go after the url: /_layouts/ReportServer/NewSharedDataSource.rsds
    Exception occurs after some time because it times out trying to connect to wrong host.  Exception below:
    Exception encountered for SOAP method GetSystemProperties: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond <WRONG HOST IP>:80
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) -
    -- End of inner exception stack trace ---
    at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SetConnectionProtocol()
    at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SoapMethodWrapper`1.ExecuteMethod(Boolean setConnectionProtocol)
    No powershell commands or any of the settings in the service application allow me to set this.  Any help would be appreciated.
    20 Bay Windows Home Server (Not Vail!)
    http://piroozjavan.blogspot.com/

    Issue an iisreset on the WFE, and validate that SSRS Service is running on the App servers.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • AzCopy worked, suddenly stopped working, unable to connect to the remote server

    AzCopy was working fine, I was transferring about 670 files to my Azure Files storage account on "https://blah.file.core.windows.net/myshare" (that's not the real account), then it stopped after about 400 files.
    Now it continually gives the error "Error parsing destination location
    https://blah.file.core.windows.net/myshare: Unable to connect to the remote server."
    However it works from a different computer with a completely different IP address in another part of the country.
    I am 100% sure my azcopy command is correct, because it worked for about 400 files then stopped, and the exact same command no longer works.  I have tried it with both the primary and secondary keys.  I've uninstalled and reinstalled azcopy 4.1
    and that doesn't help.
    Is Azure blocking IPs somehow?  What could be wrong?

    Hi,
    I am glad to hear that you have solved your issue, thanks for posting, if you have any difficulty in future, we welcome you to post in forums again.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to connect to the remote ftp server using dreamweaver.

    For the last one week I have been trying to connect to the remote ftp server using dreamweaver. I spoke to the technical support agency who manage our remote server but they are saying that there is no problem with the server adn they dont know anythign about dreamweaver so cant assist me.
    I was suggested to check with adobe team directly and i spoke to a technical support person on the live chat but they said since the version is CS4 - education version, they cant assist me at all!! This is just ridiculous...I am constantly being sent from one place to the other without anything getting resolved!!
    Please help somebody!!

    I am having a similar problem... maybe.  I was connected to my remote site all day yesterday, then out of the blue I tried to "put" an edited file... as I had been doing all day, and I received an FTP error:  Cannot make connection to host. Your login or password is incorrect.  That's odd, I've been connecting all day.  So I went into my sites > manage sites and clicked the Test button on my remote server information and it returned Adboe Dreamweaver CS connected to your webserver successfully.  I went back to my file and tried once more to "put" it on the remote server... again FTP Error: cannot make connect to host...  So I reboot my computer and start Dreamweaver CS3 again.  I reenter my remoter server information and click the Test button.  "... connect to your webserver successfully".  I try to put any file, FTP error again.  So I call my server administrator, he checks the servers logs and says there are no errors and you've connected successfully several times today.  I went through the trouble shooting steps listed here, though my FTP Logs are empty.  I cannot stay connected or even see the remote folders to try to drag and drop.  I tried to run ftp from a windows command prompt and it seems to connect me.
    I downloaded an installed an SFTP client and was able to successfully connect to my remote server and upload the files.  It's definately a Dreamweaver problem.  Any suggestions?

  • We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means

    We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means  

    Hello,
    Did you means that you use the Windows Azure Virtual Machine DNS name as the server name in the Reporting Server Web Services URL?
    For example:
    Report server:http://uebi.cloudapp.net/reportserver
    Report manager:http://uebi.cloudapp.net/reports
    If you want to connect to Report Manager on the virtual machine from a remote computer, you should create a  virtual machine TCP Endpoint and open the port in the virtual machine’s firewall. By default, the report server listens for HTTP requests
    on port 80.
    Reference:http://msdn.microsoft.com/en-us/library/jj992719.aspx#bkmk_ssrs_connect_2_remote_RM
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Connecting to a remote computer

    Hi all,
    I have recently started working on a website using
    dreamweaver. I don't have a good experience building website. I
    need to connect to a emote computer to download data sitting there.
    The data is stored as a text file. I need to doknow how to do that
    with both option, i mean if there is a fire wall or with a
    firewall.
    Thanks!!

    Well, the two that are networked, you could set up a 'shared'
    directory, so
    that either or both computers can read and write to, then
    simply store this
    file in this directory and both can get to it whenever.
    As for the remote computer not networked to yours, well
    unless you have
    physical access to it, to get it onto a flash drive, portable
    hard drive
    etc, you are looking a bit limited, without email. Unless you
    can get the
    person to set up some sort of ftp access or the like, shared
    directory with
    password access, you might be SOOL.
    Cheers,
    Brendon
    ps. there may be other options, but they allude me at the
    moment.
    "Orhan_a" <[email protected]> wrote in
    message
    news:ea2k51$rhc$[email protected]..
    > Yes, the two computer are netwroked. no i can't email
    the text file from
    > the
    > remote computer. Also, i need to know how to download
    text file from a
    > remote
    > comuter which is not networked with mine. i might need
    it soon.
    >
    > Thanks alot!!
    >
    >
    >

Maybe you are looking for

  • Question for those with memory issues on k8n neo plat

    I have been having issues with my memory on the k8n neo platinum board since i built the system last month and i just recently discovered a fact I had overlooked. I Have discovered that  if i test the system while it is cool (having sat turned off ov

  • Rebate condition type

    Dear Experts, I have created a condition type for material rebate and the same has been assigned to condition type grp in turn condition type grp is assigned to rebatye agreement type....besides the same(cond type) is included in the pricing procedur

  • MyRIO Analog IO

    I'm new to myRIO and LabVIEW. My questions are as follow: 1. I tried a simple program to acquire analog sine wave from a function generator and display it in PC (labVIEW). The sine wave displayed in labVIEW was pretty accurate for approximately 50Hz.

  • HELP!!! I've tried everything to restore my library

    I've tried every possible action to restore my library - I've located the iTunes library file in my music I've tried to install an older version but it won't let me all of my files are still on my pc but i'm going to lose all my playlists and play co

  • I am having trouble re-recording audio inside Keynote

    I recorded audio inside Keynote, but then added a few slides.  I can't for the life of me figure out how to erase the audio and re-record the presentation. Also, I don't seem to be able to re-record each Keynote slide independently.  I need to export