Go Daddy and Server
Okay, this is a noob question but i was hoping you guys could help me out. I even spent $100 on books but nothing actually helps me with this.
I own a domain thats parked at GoDaddy. I have Snow Leopard server Running on my MacBook Pro at home. I want to set up a server at home so that i can set up the 23 Mac users in the family under the domain name with e-mail and have them access the server from outside too. I just need help setting up the server so that it reads/syncs/connects to the domain I have at GoDaddy.
PLEASE HELP ME !!!
You would need, first, to have your server on a static IP address on your WAN. A laptop is not really ideal for this purpose since it needs to be always on and in a fixed location.
You would then configure your Godaddy DNS information to set up an A record for your mail.yourdomain.com subdomain, and set your domain's MX record to that address, eg:
mail.yourdomain.com. A 73.20.100.34
then, as an MX record:
yourdomain.com. MX 5 mail.yourdomain.com.
Godaddy may have some fixed time to life numbers - use the lowest available.
Also take a look at the Mail server documentation for further details.
Matt
Message was edited by: Matt Clifton
Similar Messages
-
What is the difference between jsp :include and server side include
what is the difference between jsp :include and server side include(request dispatcher include method)????
i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
do suggest if u hav ny other diff in this context...The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
- Saish -
Connection between SDM client and server is broken
Dear All,
First of all this is what I have
-NW04 SPS 17
-NWDS Version: 7.0.09 Build id: 200608262203
-using VPN connection
-telnet on port 57018 is succesfull
I can login to SDM server (from NWDS and from SDM GUI) I can see the state of SDM(green light), restart it, can navigate through tabs in GUI, but every time I am trying to deploy an ear i have this error:
Deployment exception : Filetransfer failed: Error received from server: Connection between SDM client and server is broken
Inner exception was :
Filetransfer failed: Error received from server: Connection between SDM client and server is broken
I have already read a lot of topics,blogs,notes but didn't find the solution.
Can anybody help me?
Best RegardsHaving same issue. Nothing helped so far... Using NWDS 7.0 SP18.
I have turned SDM tracing on and this is what I see on client side after sending first data package:
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0280/17 Client: finished sending string part"
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0280/0 Client: receive String part from Server"
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl.receiveFromServer(NetComm ..): Entering method
com.sap.bc.cts.tp.net.NetComm.receive(): Entering method
com.sap.bc.cts.tp.net.NetComm: debug "Method "receive(char[])" could not read all requested bytes. There are still 12 bytes to read"
com.sap.bc.cts.tp.net.NetComm: debug "Caught IOException during read of header bytes (-1, 43):Connection reset"
com.sap.bc.cts.tp.net.NetComm: debug " throwing IOException(net.id_000001)"
com.sap.bc.cts.tp.net.NetComm.receive(): Exiting method
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: Exiting method
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0281/1 Client: connection was broken"
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: Exiting method
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0281/0 Client: finshed sendAndReceive"
com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: Exiting method
My connection on server is still active so I have to restart SDM server to reset and try it again.
Anyone have idea whats happening?
Edited by: skyrma on Feb 24, 2012 2:46 PM
Edited by: skyrma on Feb 24, 2012 2:47 PM
Edited by: skyrma on Feb 24, 2012 2:47 PM -
Connection Problem while client is behind proxy and server out side proxy
hello
i implemented ChatApplication in JAVA, for that i used socket connection when client and server both are in same network then it's working fine.
but when my server is on internate and client is behind proxy and try to connect with server
it not able to connect i get exception.
i serch most of forum i got same answer and i try it but i was not success.
any kind of help is appriciated.
i attached my code(which i implement for testing ) pls reply me
thanks in advance.
Server.java
import java.lang.*;
import java.io.*;
import java.net.*;
class Server {
public static void main(String args[]) {
String data = "you are successfully connected with server.";
try {
ServerSocket srvs = new ServerSocket(1234);
Socket skt = srvs.accept();
System.out.print("Server has connected!\n");
PrintWriter out = new PrintWriter(skt.getOutputStream(), true);
System.out.print("Sending string: '" + data + "\n");
out.print(data);
out.close();
skt.close();
srvs.close();
catch(Exception e) {
System.out.print("Whoops! It didn't work!\n");
ProxyClient.java
import java.io.*;
import java.net.*;
import java.util.*;
class ProxyClient{
public static void main(String args[]) {
String host="61.17.212.29";
int port=1234;
String line;
Properties properties = System.getProperties();
/*properties.put("firewallSet", "true");
properties.put("firewallHost", "192.168.0.1");
properties.put("firewallPort", "808");*/
properties.put("socksProxySet","true");
properties.put("socksProxyHost", "192.168.0.1");
properties.put("socksProxyPort", "1080");
System.setProperties (properties);
try {
/*SocketAddress addr = new InetSocketAddress("192.168.0.1", 1080);
Proxy proxy = new Proxy(Proxy.Type.SOCKS, addr);
Socket skt = new Socket(proxy);
InetSocketAddress dest = new InetSocketAddress("61.17.212.29",1234);
skt.connect(dest);*/
System.out.println("before socket taken");
Socket skt = new Socket(host,port);
System.out.println("after socket taken");
BufferedReader networkBin = new BufferedReader(new InputStreamReader(skt.getInputStream()));
System.out.println("Received string: '");
line = networkBin.readLine(); // Read one line
while(true)
System.out.println(line); // Output the line
line = networkBin.readLine(); // Read the next line, if any
catch(Exception e) {
System.out.print("Whoops! It didn't work!\n");
e.printStackTrace();
}Now look here. I could not care less about this
code. I don't know anything about it, I don't
want to know, I have already recommended you don't
use it, and I have also given you a simpler and
better solution. If you don't want to take my advice
that is your privilege and your problem.ya i has understand system propertis i have setted and u can see it in the code i have tried by both system properties and also J2SE 5.0 proxy class but i got a same problem malformed Exception server refuse to connection.
is there any problem at sever side?
can u tell me in which way u r teling to set the propery i m looking forward for ur reply.
ya i m sure u will give me.................reply "ejp".
Thnx in advance. -
Sharepoint foundation and server 2013
hi all
i have scom 2012 sp1 on windows server 2008 r2. sql reporting services (mssql 2012 sp1) installed and configured on this server.
OM, OMDW, scom`s reportserver db - on other server 2008 r2 (mssql 2012 sp1).
i try to install management pack sharepoint foundation and server 2013 (use
http://www.enduria.eu/the-sharepoint-2013-management-pack-and-my-experience-installing-it/).
in scom console task status - success, but server (sharepoint 2013) in unidentified machines.
in log on sp2013 server i get error:
Cannot identify which SharePoint farm this server is associated with. Check the management pack guide for troubleshooting information.
in log on scom management server i get same error every 10 minutes:
Failed to deploy reporting component to the SQL Server Reporting Services server. The operation will be retried.
Exception 'DeploymentException': Failed to deploy reports for management pack with version dependent id 'edf9e0b9-65aa-df29-6729-d16f0005e820'. Failed to deploy linked report 'Microsoft.SharePoint.Server_Performance_Report'. Failed to convert management pack
element reference '$MPElement[Name="Microsoft.SharePoint.Foundation.2013.Responsetime"]$' to guid. Check if MP element referenced exists in the MP. An object of class ManagementPackElement with ID 75668869-f88c-31f3-d081-409da1f06f0f was not found.
One or more workflows were affected by this.
Workflow name: Microsoft.SystemCenter.DataWarehouse.Deployment.Report
Instance name: d2781f95-d488-4e35-8226-a9e1d7127149
Instance ID: {96379E66-14B2-B413-F73F-1F39806AF714}
Management group: scom-service_group
what could be the problem?
thanksSame issue...running SCOM 2012 RTM with UR3 on Windows 2008 R2 and SharePoint 2013. I got the discovery to work after editing the .config file. All appeared to be working with the exception of the Configuration Databases and Content Databases
which are currently in a Not monitored state (this could be by design?).
I believe this is a bug with the SharePoint 2013 Management Pack. I tried importing the SharePoint 2010 MP to validate my SCOM environment and Report Server and did not get any errors and the reports imported fine. Has anyone openened
a case with Microsoft or know if this is a known issue? Thanks!
Error:
Data Warehouse failed to deploy reports for a management pack to SQL Reporting Services Server. Failed to deploy reporting component to the SQL Server Reporting Services server. The operation will be retried.
Exception 'DeploymentException': Failed to deploy reports for management pack with version dependent id 'edf9e0b9-65aa-df29-6729-d16f0005e820'. Failed to deploy linked report 'Microsoft.SharePoint.Server_Performance_Report'. Failed to convert management
pack element reference '$MPElement[Name="Microsoft.SharePoint.Foundation.2013.Responsetime"]$' to guid. Check if MP element referenced exists in the MP. An object of class ManagementPackElement with ID 75668869-f88c-31f3-d081-409da1f06f0f was not
found.
One or more workflows were affected by this.
Workflow name: Microsoft.SystemCenter.DataWarehouse.Deployment.Report
Instance name: 9afddb34-5f35-40fa-8564-1de5d33773d3
Instance ID: {4BF8AF22-E5E4-1FC6-3951-F731DCA65317}
Only two SharePoint 2013 reports are showing up in SCOM:
SharePoint Foundation Performance
SharePoint Server Performance
Missing the following reports (according to the product guide):
Server Alert
This report renders all alerts raised by specified server(s).
Service Alert
This report renders all alerts raised by specified service(s).
Server Event
This report renders all events raised on specified server(s).
Service Event
This report renders all events raised on specified service(s).
Top Server Events
This report renders top 20 events raised on specified server(s).
Top Service Events
This report renders top 20 events raised on specified service(s).
Top Alerts
This Most Common Alert Report helps to identify high volume alerts, the volume a distinct alert contributes to the total number of
alerts and the resolution times. This report helps in tuning the alerts.
Server Performance
This report renders performance data for specified server(s).
Entity State
This report renders entity state for specified SharePoint object(s) over time. -
Hello. I would like to write async tcp client and server. I wrote this code but a have a problem, when I call the disconnect method on client or stop method on server. I can't identify that the client or the server is no longer connected.
I thought I will get an exception if the client or the server is not available but this is not happening.
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
How can I determine that the client or the server is no longer available?
Server
public class Server
private readonly Dictionary<IPEndPoint, TcpClient> clients = new Dictionary<IPEndPoint, TcpClient>();
private readonly List<CancellationTokenSource> cancellationTokens = new List<CancellationTokenSource>();
private TcpListener tcpListener;
private bool isStarted;
public event Action<string> NewMessage;
public async Task Start(int port)
this.tcpListener = TcpListener.Create(port);
this.tcpListener.Start();
this.isStarted = true;
while (this.isStarted)
var tcpClient = await this.tcpListener.AcceptTcpClientAsync();
var cts = new CancellationTokenSource();
this.cancellationTokens.Add(cts);
await Task.Factory.StartNew(() => this.Process(cts.Token, tcpClient), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
public void Stop()
this.isStarted = false;
foreach (var cancellationTokenSource in this.cancellationTokens)
cancellationTokenSource.Cancel();
foreach (var tcpClient in this.clients.Values)
tcpClient.GetStream().Close();
tcpClient.Close();
this.clients.Clear();
public async Task SendMessage(string message, IPEndPoint endPoint)
try
var tcpClient = this.clients[endPoint];
await this.Send(tcpClient.GetStream(), Encoding.ASCII.GetBytes(message));
catch (Exception exception)
private async Task Process(CancellationToken cancellationToken, TcpClient tcpClient)
try
var stream = tcpClient.GetStream();
this.clients.Add((IPEndPoint)tcpClient.Client.RemoteEndPoint, tcpClient);
while (!cancellationToken.IsCancellationRequested)
var data = await this.Receive(stream);
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
private async Task Send(NetworkStream stream, byte[] buf)
await stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
await stream.WriteAsync(buf, 0, buf.Length);
private async Task<byte[]> Receive(NetworkStream stream)
var lengthBytes = new byte[4];
await stream.ReadAsync(lengthBytes, 0, 4);
var length = BitConverter.ToInt32(lengthBytes, 0);
var buf = new byte[length];
await stream.ReadAsync(buf, 0, buf.Length);
return buf;
Client
public class Client
private TcpClient tcpClient;
private NetworkStream stream;
public event Action<string> NewMessage;
public async void Connect(string host, int port)
try
this.tcpClient = new TcpClient();
await this.tcpClient.ConnectAsync(host, port);
this.stream = this.tcpClient.GetStream();
this.Process();
catch (Exception exception)
public void Disconnect()
try
this.stream.Close();
this.tcpClient.Close();
catch (Exception exception)
public async void SendMessage(string message)
try
await this.Send(Encoding.ASCII.GetBytes(message));
catch (Exception exception)
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
private async Task Send(byte[] buf)
await this.stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
await this.stream.WriteAsync(buf, 0, buf.Length);
private async Task<byte[]> Receive()
var lengthBytes = new byte[4];
await this.stream.ReadAsync(lengthBytes, 0, 4);
var length = BitConverter.ToInt32(lengthBytes, 0);
var buf = new byte[length];
await this.stream.ReadAsync(buf, 0, buf.Length);
return buf;Hi,
Have you debug these two applications? Does it go into the catch exception block when you close the client or the server?
According to my test, it will throw an exception when the client or the server is closed, just log the exception message in the catch block and then you'll get it:
private async void Process()
try
while (true)
var data = await this.Receive();
this.NewMessage.Invoke(Encoding.ASCII.GetString(data));
catch (Exception exception)
Console.WriteLine(exception.Message);
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
By the way, I don't know what the SafeInvoke method is, it may be an extension method, right? I used Invoke instead to test it.
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. -
Remote access VPN to server from outside and server reach internet on the same time
Dear,
I have problem in my ASA 5515-X , when i make Remote access VPN to servers in inside zone the internet connection disconnected in the servers, or when i have internet in servers, the remote access cant reach servers.
the configuration for server as static NAT for each server, and the connection of VPN is to another public IP but in the same subnet of NAT ip.
server1 : 10.10.10.2 nat to 5.6.7.8
server2: 10.10.10.3 nat to 5.6.7.9
server3: 10.10.10.4 nat to 5.6.7.10
VPN connection to 5.6.7.12
is there any solution for this senario, remote vpn to servers and the same time the servers have internet readability for download updates .. etcHi,
So it seems that the problem is with lacking a NAT0 configuration
You could modify the below configuration to match your networks/IP addresses used. In the below configuration I presume that you have interfaces "inside" and "outside".
object network SERVER-NETWORK
subnet <server network address> <network mask>
object network VPN-POOL
subnet <vpn pool network address> <network mask>
nat (inside,outside) 1 source static SERVER-NETWORK SERVER-NETWORK destination static VPN-POOL VPN-POOL
Just insert the correct address related information and change the "object" and interface names if required.
This configuration will tell the ASA that no NAT will be performed for traffic between the VPN-POOL and SERVER-NETWORK. The NAT configuration is bidirectional. With this configuration the Static NAT configurations will continue to work for the servers Internet traffic and this NAT0 configuration will be applied only to the VPN Client traffic.
Hope this helps :)
- Jouni -
Custom Report using Metrics of Instance and Server
Hello
I need to create a custom report using different instance and server metrics like:
File System Space Available
Tablesapaces
Database Spaces usage
Sort in Memory
library Cache Hit
Data Dictionary Hit
Buffer Cache Hit
I already made the report, but I can´t change the size of the graphic (for a better presentation on my report)....
Do you know how can I change the size of the report?
I think that I´m using a "metric" so for that reason I Can´t change the size ... :(I am currently having a problem with this report and drilldown to KSB1, the cost centers selected int S_ALR_87013611 are not transferring to KSB1 and thus all the cost centers come up in the call to KSB1, are you experiencing this problem? I am on V4.7
-
Hi,
I want to assist my friend (he is same like me, newbie in oracle) to give a report on health of oracle database and server; which is running in his small software development and data feeding company. There are around
1. 50 users,
2. windows XP professional,
3. Oracle9i Enterprise Edition Release 9.2.0.1.0 – Production,
4. one database, No Archive Mode, oracle home is : c:\oracle\ora92 and database is stored at D:\ORACLE\oradata\orcl, 3 control files, 3 redo groups and 11 dbfs
5. 2.27 GB is free space on the drive of oracle home,
6. more than 1 GB RAM is in the system,
7. <what else more; I should describe, please let me know>
He has to submit a report on current status, health, performance etc. of oracle database and server. How should we design and get the data, please guide me.
Thanks & RegardsYou Mean Helath Check Report of the DB
Tablespace size?
Datafile Size?
Default tablespace?
UNDO management?
SGA?
buffer cache hit ratio?
library cache hit ratio?
There are so many other parameters..Performance cannot be predicted from remote site
But you can provide certain information
Here are some views which could be helpful
DBA_TABLESPACE
DBA_FREE_SPACE
DBA_DATA_FILES
V$CONTROLFILE
V$LOG--Meaning less since you run in archived mode
Number of Oracle Process allocated
UNDO RETENTION
SQL>show parameter process
SQL>show parameter UNDO
Do you have METALINK acces
1019546.6
this has everything then you can pass whatever they need
and many more -
How to make site root-relative links work in DW and Server both?
See details on buggy DW image link behavior, below. My question is:
1) how to make site root-relative links work in DW and Server both? Or…
2) how to reliably automate the change of several hundred legacy root-relative links of the form
/images/image.jpg to document-relative?
That is, to
../images/image.jpg or
../../images/image.jpg or
../../../images/image.jpg etc…depending on where the directory is.
The old format (/images/image.jpg ) used to work fine in my previous DW 8 configuration but appear grey in DW after “upgrading” to DW cs5.5 mac. (they look fine on the server, but it’s hard to edit image-heavy pages locally when they are all grey).
I tried changing the files to how DW creates root relative links now:
/public_html/images/image.jpg, which is a very easy, attractive root flow since there’s a one-to-one mapping. These look great in DW but are broken on the server!
I looked at the “advanced” site setup, and it looked like it might be possible to nuke the /public_html/ part of my server info…but it also looked like there was the potential for doing damage changing these settings, which are automatically generated from our server connection settings, which seem to work.
The “links relative to document/ site root” toggle…does that change how DW interprets existing links, or just change the default when you are adding a link? I have made 80% of the file links document relative…before wondering if root-relative isn’t better?
It sure seems less ambiguous for all those images if theres a way to make root relative work for DW design view, DW link check, and server.
Summary of buggy behavior: (see test with images here)
"old style" site root link
/images/img_book/WScover120x150_NEW.jpg
Design veiw in DW: broken (grey w/ broken icon)
Link check in DW: "external link" (i.e., uncheckable, + file could appear orphaned)
Browser: good
Ease of switching: n/a (existing format)
"new style" site root relative link
/public_html/images/img_book/WScover120x150_NEW.jpg
Design veiw in DW: good
Link check in DW: good
Browser: broken
Ease of switching: easy
Document relative link
../../images/img_book/WScover120x150_NEW.jpg
Design veiw in DW: good
Link check in DW: good
Browser: good
Ease of switching: hard (how to automate?)
Absolute link
http://www.oasisdesign.net/images/img_book/WScover120x150_NEW.jpg
Design veiw in DW: broken (grey w/ broken icon)
Link check in DW: external (i.e., uncheckable, + file could appear orphaned)
Browser: good
Ease of switching: n/a...not a real option
Thanks!
Similar discussion on "/"Hello again Jon!
Thanks for jumping on this.
All clear and understood about where publc_html is etc.
No contemplation of nuking the actual public_html directory on the server, just the "/public_html" text string at the start of the DW-generated links.
"/public_html" is automatically added to the front of the link in DW if I create the link with any of the GUI tools, if I have "site root relative" selected. And ""/public_html" ends up in the code, and gets uploaded that way to the server, where it (obviously) doesn't work.
Doesn't sound like it is supposed to work this way. Also, what seems to be the usual root relative format (/images/image.jpg) shows as a broken link in the GUI and an external link in the DW link check. All this togther makes me thinkI have some obscure setting incorrect?
The setting that caught my eye is manage sites/ site setup/ advance settings/ local info/ web url, which is automatically set to http://www.oasisdesign.net/public_html/
it gives an option to change it but it makes every effort to make this NOT look like something users should mess with:
Having gone through the more careful thought process during this post, I'm ready to do the experiment of changing the remote server web URL (why is it wrong by default?)...think I'll eat dinner first so there's 45 min to avert disaster if anyone knows this to be a bad idea!
Art
PS--don't have a local testing server...don't think this will solve the GUI broken link/ link shows as external problems.
Is there an easy, automated way to change links sitewide from document to root relative? -
Every now and then (every 15 minutes-half an hour or so), my internet fails. It says in the Diagnostics that the internet and server have failed. Happens on my sister's mac as well. Is this our modem? Our PCs don't do this so it has something to do with the macs.
Hi Patrick,
I'm starting to think it's either an AirPort card issue or something to do with the Mac OS. I have stopped using wireless as much as possible in my home (have wired up several new Ethernet outlets), and it sure is nice having Internet run at the speed it's supposed to all the time, and with no drops. Might be something to consider.
In the meantime:
Open System Preferences > Network > select AirPort > click on Advanced > TCP/IP > Configure IPv6 > Off > OK > Apply > Turn AirPort Off > Turn AirPort On
Open System Preferences > Network > select Ethernet > click on Advanced > TCP/IP > Configure IPv6 > Off > OK > Apply
(FOR LION: If you can’t see an option to turn ipv6 off, set it to link-local only.)
IPv6 troubleshooting http://support.apple.com/kb/TS3802
And here are some internet troubleshooting ideas:
http://docs.info.apple.com/article.html?path=Mac/10.6/en/11395.html
http://support.apple.com/kb/HT1714 -
ppl i fed up with my mac air while using my exchange email account, it takes ages to refresh and it doesn't send or receive instantly , no clue although that the same setting and server names has been set up on my iPhone and it is working totally fine
Install ClamXav and run a scan with that. It should pick up any trojans.
17" 2.2GHz i7 Quad-Core MacBook Pro 8G RAM 750G HD + OCZ Vertex 3 SSD Boot HD
Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101 -
Client and Server in one process
Hi all,
I am trying to create a process which can act as both Client and Server.
How can I do this?
Thanks!AH. That's a better definition or explanation. Thanks.
This smells of a single process with multiple threads, each thread handling the basic needs of your requirements. In other words, have a thread deal with making one or more client type connections (use a main thread - the client controller - to spawn client-connection threads. This assumes you need multiplicity in your client-connection model.
Then make another thread - the server controller - to handle inbound connections, spawning a new thread for each inbound connection. Your main thread, the one that contains your main method, can watch everything that's going on and log or report what's going on in your client and server threads.
Going into specifics would be a lot to do here. Maybe someone is up for the challenge. Of course, this being a "New to Java Technology" forum, these concepts may be a bit beyond your skillset.
This is not the only way to go about solving your problem, but it's the only way I can think of at the moment given your requirements.
Hope this helps some. -
Communication between client and server
I am using sockets for communication between the client and the server. is there any other way that i can use for communication between the client and server???
Plenty of ways: JMS, SOAP, RMI, a RESTful API, writing-files-to-a-shared-directory-on-the-disk, Sneakernet, ...
Some of them use sockets (or better TCP/IP) as the underlying protocol.
But to give you a good answer, you would have to tell us why you want a different way. I hope you're not searching for a different way just for the sake of being different. -
JSSE Client and server communication problem .err:untrusted server cert
Hai all,
I am trying to communicate JSSE client and server.
I have created root.cert(CA),root.key,server.cert,server.key , client.cert and client.key. All these certificates are created using openssl.
I have placed root.cert in default keystore cacerts.
I have created a keystores(server & client) name mykeystore.
I have placed root.cert and client.cert in the client keystore.
I have placed root.cert and server.cert in the server keystore.
But during the run time i am getting javax.net.ssl.SSLException: untrusted server cert chain.
please suggest the modifications needs to be done to fix the error.
please tell me In the client keystore and in the server keystore....what certificates we need to put?
whether my approach as said above is correct or not?
In java code how to specify this particular certificate we are referring?
I have coded in this way ....
SSLContext ctx;
KeyManagerFactory kmf;
KeyStore ks;
char[] prasad = "prasad".toCharArray();
ctx = SSLContext.getInstance("SSLv3");
kmf = KeyManagerFactory.getInstance("SunX509");
ks = KeyStore.getInstance("jks");
ks.load(new FileInputStream("mykeystore"), prasad);
kmf.init(ks, prasad);
ctx.init(kmf.getKeyManagers(), null, null);
factory = ctx.getSocketFactory();
But my doubt is we are specifying only keystore name with that how it will check root.cert(ca) and client.cert and server.cert?
Is there any modifications need in my code?
Please tell me some way ...
Thanks ,
Prasad.Hi prasad,
There will be a problem with the certificates being received from thr remote server or client. Check that your trust store contains the certificate of the remote machine or the CA that signed it and that the certificate has not expired.
Also be sure that both machines are using the latest version of the JSSE.
Hope this will help you.
Regards,
Anil.
Technical Support Engineer.
Maybe you are looking for
-
I have an iMac and an Apple TV that is connected to the main iTunes library on the iMac. My Apple TV is able to find all the music, videos and pictures that are on the iMac's internal hard drive - presumably via iTunes (music and videos) and directl
-
Lenovo Recovery Discs: 64bit version and drivers
My x200 came with Windows XP Pro x86 loaded and a Windows 7 x86 (32-bit) OS recovery and driver DVD. I want to install a x64 bit Windows 7 on this machine using the same Lenovo provided discs (but do not have them)--does anyone know how to get these
-
Shared Services 9.3.1.1 HyS9SharedServices.exe process
We recently started to notice that the HyS9SharedServices.exe process grows to use 1GB of memory. Currently this isn't causing any known issues, there aren't many users in the system. However about a month ago we had major performance issues with HFM
-
Putaway stock in the correct bins propsed by system
I need help on the following issue. Earlier the receiving document label for goods coming in from suppliers used to print a list of bins where a particular material was existing and hence could be put away in one of these bins. Now somehow due to cha
-
Refreshing the 'Check Box Group' UI element
Hi , The requirement is the 'Check Box Group' UI element should be refreshed automatically . I am dynamically creating the 'Check Box Group' UI element and want to refresh it once I transfer the checked values from the Check Box group. How this can b